Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _1._0
- {
- class Program
- {
- static void Main(string[] args)
- {
- int ages = int.Parse(Console.ReadLine());
- if (ages <= 2 && ages >= 0)
- {
- Console.WriteLine("baby");
- }
- else if (ages >= 3 && ages <= 13)
- {
- Console.WriteLine("child");
- }
- else if (ages >= 14 && ages <= 19)
- {
- Console.WriteLine("teenager");
- }
- else if (ages >= 20 && ages <= 65)
- {
- Console.WriteLine("adult");
- }
- else if (ages >= 66)
- {
- Console.WriteLine("elder");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement