Advertisement
RedFlys

Home Work Boris Age

May 23rd, 2020
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.64 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace HomeWorkAge
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             int age = 18;
  14.             int userValue;
  15.  
  16.             Console.WriteLine("Введите свой возраст: ");
  17.             userValue = Convert.ToInt32(Console.ReadLine());
  18.  
  19.             if (userValue < age)
  20.             {
  21.                 Console.WriteLine("Вали быстрее!");
  22.             }
  23.             else
  24.             {
  25.                 Console.WriteLine("Добро пожаловать в клуб старпёров. Проходи, наливай вискарь.");
  26.             }
  27.            
  28.             Console.ReadKey();
  29.         }
  30.     }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement