Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void Main(string[] args)
- {
- string exitCommand = "exit";
- string inputMassage = "";
- while (inputMassage != exitCommand)
- {
- Console.Write($"Введите {exitCommand} для выхода: ");
- inputMassage = Console.ReadLine();
- }
- Console.WriteLine("Вы вышли!");
- }
Advertisement
Advertisement