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