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 Загадка
- {
- class Program
- {
- static void Main(string[] args)
- {
- do
- {
- Console.WriteLine("Что это такое: синий, большой, с рогами и набит зайцами?");
- string Sl = Console.ReadLine();
- switch (Sl)
- {
- case "троллейбус":
- Console.Clear();
- Console.WriteLine($"Правильно это {Sl}");
- Console.ReadKey();
- return;
- case "сдаюсь":
- Console.Clear();
- Console.WriteLine("Правильный ответ троллейбус");
- Console.ReadKey();
- return;
- default:
- Console.Clear();
- Console.WriteLine("Подумай еще");
- Console.ReadKey();
- break;
- }
- } while (true);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement