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;
- using System.Threading.Tasks;
- namespace CSLight
- {
- class Menu
- {
- static void Main(string[] args)
- {
- string userInputStr;
- int userInputInt;
- Console.WriteLine("Привет! Как тебя зовут?\n");
- userInputStr = Console.ReadLine();
- Console.WriteLine("\nПривет " + userInputStr + "! Сколько тебе лет?\n");
- userInputInt = Convert.ToInt32(Console.ReadLine());
- if(userInputInt < 18)
- {
- Console.WriteLine("\nИзвини, но тебе закрыт доступ к программе!");
- Console.ReadKey();
- }
- else
- {
- Console.WriteLine("\nЗамечательно! Ты ходишь в школу?\n");
- userInputStr = Console.ReadLine().ToLower();
- if(userInputStr == "да")
- {
- Console.WriteLine("\nОбманщик, тебе нет 18!");
- Console.ReadKey();
- }
- else if(userInputStr == "нет")
- {
- Console.WriteLine("\nСентябрь гориииит...." +
- "\n\n1. Убийца плачет" +
- "\n2. Птица париит" +
- "\n3. Что это вообще такое?\n");
- userInputInt = Convert.ToInt32(Console.ReadLine());
- if(userInputInt == 2 || userInputInt == 3)
- {
- Console.WriteLine("\nОбманщик!");
- Console.ReadKey();
- }
- else if(userInputInt == 1)
- {
- Console.WriteLine("\nБлеск! Ты прошел мой тест!");
- Console.ReadKey();
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment