Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- internal class Program
- {
- static void Main(string[] args)
- {
- string stopWord = "exit";
- bool isWork = true;
- while (isWork)
- {
- Console.Write("еще не вышел? ");
- string userInput = Console.ReadLine();
- if (userInput == stopWord)
- {
- isWork = false;
- }
- }
- Console.WriteLine("Ура!");
- Console.ReadKey();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment