Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Age
- {
- class MainClass
- {
- public static void Main(string[] args)
- {
- string line = Console.ReadLine();
- int age = Int32.Parse(line);
- if (age < 3)
- Console.WriteLine("baby");
- else if(age < 14)
- Console.WriteLine("child");
- else if(age < 20)
- Console.WriteLine("teenager");
- else if(age < 66)
- Console.WriteLine("adult");
- else
- Console.WriteLine("elder");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement