1.11: Age
OBJECTIVE
Write a C# program to ask the user for his age (20, for instance) and answer something as "You look younger than 20" (instead of 20, you should display the age that has been entered).
RESOLUTION
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace My3Development { public class Age { public static void Main(String[] args) { int age; Console.Write("Enter a age: "); age = Convert.ToInt32(Console.ReadLine()); Console.Write("You look younger than {0} ",age); Console.ReadKey(); } } }
0 comments :
Please Enter best of your Comments