Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Clight_09
- {
- class Program
- {
- static void Main()
- {
- string exitWord = "Exit";
- string userInput;
- bool isExit = false;
- while (isExit == false)
- {
- Console.WriteLine($"Для выхода введите: {exitWord}\n");
- Console.Write("Введите слово: ");
- userInput = Console.ReadLine();
- if (userInput == exitWord)
- isExit= true;
- Console.Clear();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement