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