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 ConsoleApplication3
- {
- class Program
- {
- static void Main(string[] args)
- {
- string name;
- int old;
- string shcool;
- int number;
- Console.WriteLine("Привет, как тебя зовут?");
- name = Console.ReadLine();
- Console.WriteLine("Привет, " + name + "! \nСколько тебе лет?");
- old = Convert.ToInt32(Console.ReadLine());
- if (old >= 18)
- {
- Console.WriteLine("Замечательно! Ты ходишь в школу?");
- shcool = Console.ReadLine();
- switch (shcool)
- {
- case "да":
- Console.WriteLine("Обманщик, тебе нет 18!");
- Console.ReadKey();
- break;
- case "нет":
- Console.WriteLine("Сентябрь гориииит...\n 1) Убийца плачет\n 2) Птица парит\n 3) Что это вообще такое?");
- number = Convert.ToInt32(Console.ReadLine());
- switch (number)
- {
- case 1:
- Console.WriteLine("Блеск! Ты прошёл мой тест!");
- Console.ReadKey();
- break;
- case 2:
- Console.WriteLine("Обманщик!");
- Console.ReadKey();
- break;
- case 3:
- Console.WriteLine("Обманщик!");
- Console.ReadKey();
- break;
- }
- break;
- }
- }
- else
- {
- Console.WriteLine("Извини, но тебе закрыт доступ к программе!");
- Console.ReadKey();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement