Advertisement
Guest User

Untitled

a guest
Jan 18th, 2020
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.16 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Задачи
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             int input1 = int.Parse(Console.ReadLine());
  10.             int input2 = int.Parse(Console.ReadLine());
  11.            
  12.  
  13.             string bebe = "baby";
  14.             string dete = "child";
  15.             string teen = "teenager";
  16.             string vyzrasten = "adult";
  17.             string star = "elder";
  18.  
  19.             if (input1 <=2 || input2 <=2 )
  20.             {
  21.                 Console.WriteLine(bebe);
  22.             }
  23.  
  24.            
  25.             if (input1 >= 3 && input1 >= 13 || input2 >= 3 && input2 <= 13 )
  26.             {
  27.                 Console.WriteLine(dete);
  28.             }
  29.            
  30.             if (input1 >= 14 && input1 <= 19|| input2 >= 14 && input2 <= 19)
  31.             {
  32.                 Console.WriteLine(teen);
  33.             }
  34.  
  35.             if (input1 >= 20 && input1 <= 65 || input2 >= 20 && input2 <= 65 )
  36.             {
  37.                 Console.WriteLine(vyzrasten);
  38.             }
  39.  
  40.            if (input1 >= 66  || input2 >= 66)
  41.             {
  42.                 Console.WriteLine(star);
  43.             }
  44.         }
  45.     }
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement