Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Задачи
- {
- class Program
- {
- static void Main(string[] args)
- {
- int input1 = int.Parse(Console.ReadLine());
- int input2 = int.Parse(Console.ReadLine());
- string bebe = "baby";
- string dete = "child";
- string teen = "teenager";
- string vyzrasten = "adult";
- string star = "elder";
- if (input1 <=2 || input2 <=2 )
- {
- Console.WriteLine(bebe);
- }
- if (input1 >= 3 && input1 >= 13 || input2 >= 3 && input2 <= 13 )
- {
- Console.WriteLine(dete);
- }
- if (input1 >= 14 && input1 <= 19|| input2 >= 14 && input2 <= 19)
- {
- Console.WriteLine(teen);
- }
- if (input1 >= 20 && input1 <= 65 || input2 >= 20 && input2 <= 65 )
- {
- Console.WriteLine(vyzrasten);
- }
- if (input1 >= 66 || input2 >= 66)
- {
- Console.WriteLine(star);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement