Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace HomeWork
- {
- class Program
- {
- static void Main(string[] args)
- {
- string escCommand = "exit";
- string userInput;
- do
- {
- Console.WriteLine($"Для выхода из программы введите \"{escCommand}\".");
- userInput = Console.ReadLine();
- Console.Clear();
- }
- while (escCommand != userInput.ToLower());
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment