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