Advertisement
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 ConsoleApp76
- {
- class Program
- {
- static void Main(string[] args)
- {
- int age = int.Parse(Console.ReadLine());
- if (age>=0 && age<=2)
- {
- Console.WriteLine("baby");
- }
- if (age >= 3 && age <= 13)
- {
- Console.WriteLine("child");
- }
- if (age >= 14 && age <= 19)
- {
- Console.WriteLine("teenager");
- }
- if (age >= 20 && age <= 65)
- {
- Console.WriteLine("adult");
- }
- if (age >= 66)
- {
- Console.WriteLine("elder");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement