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