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 HomeWorkAge
- {
- class Program
- {
- static void Main(string[] args)
- {
- int age = 18;
- int userValue;
- Console.WriteLine("Введите свой возраст: ");
- userValue = Convert.ToInt32(Console.ReadLine());
- if (userValue < age)
- {
- Console.WriteLine("Вали быстрее!");
- }
- else
- {
- Console.WriteLine("Добро пожаловать в клуб старпёров. Проходи, наливай вискарь.");
- }
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement