Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Hw8
- {
- class Program
- {
- static void Main()
- {
- string userInputToExit = "";
- while (userInputToExit != "exit")
- {
- Console.Write("Для выхода из программы введите exit: ");
- userInputToExit = Console.ReadLine();
- }
- Console.WriteLine("\nПрограмма завершена.");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement