Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ConsoleApp84
- {
- class Program
- {
- static void Main(string[] args)
- {
- string name;
- byte age;
- string someData = null;
- Console.WriteLine("Привет, как тебя зовут?");
- name = Console.ReadLine();
- Console.WriteLine("Привет " + name + "! Сколько тебе лет?");
- age = Convert.ToByte(Console.ReadLine());
- if (age < 18)
- {
- Console.WriteLine("Извини, но тебе закрыт доступ к программе");
- }
- else
- {
- Console.WriteLine("Замечательно! Ты ходишь в школу? Введите в формате Да/Нет");
- someData = Console.ReadLine();
- if (someData == "Нет")
- {
- Console.WriteLine("Сентябрь горииит...");
- Console.WriteLine(" 1. Убийца плачет");
- Console.WriteLine(" 2. Птица парит");
- Console.WriteLine(" 3. Что это вообще такое?");
- Console.WriteLine("Выбери номер. Введите в формате 1/2/3");
- someData = Console.ReadLine();
- if (someData == "1")
- {
- Console.WriteLine("Блеск! Ты прошел мой тест!");
- }
- else if (someData == "3" || someData == "2")
- {
- Console.WriteLine("Обманщик");
- }
- else
- {
- Console.WriteLine("Вы ввели не корректные данные !!! Доступ запрещен !!!");
- }
- }
- else if (someData == "Да")
- {
- Console.WriteLine("Обманшик, тебе нет 18!");
- }
- else
- {
- Console.WriteLine("Вы ввели не корректные данные !!! Доступ запрещен !!!");
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement