You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
377 B
C#
13 lines
377 B
C#
C# Sharp program that takes an age (for example 20) as input and prints something as "You look older than 20.
|
|
|
|
using System;
|
|
public class Exercise11
|
|
{
|
|
public static void Main()
|
|
{
|
|
int age;
|
|
Console.Write("Enter your age ");
|
|
age = Convert.ToInt32(Console.ReadLine());
|
|
Console.Write("You look younger than {0} ",age);
|
|
}
|
|
} |