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