Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ConsoleApp9
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- string userInput;
- bool isWork = true;
- string exitCommand = "exit";
- while (isWork)
- {
- Console.WriteLine($"Выполнение программы. Для выхода напишите {exitCommand}.");
- userInput = Console.ReadLine();
- if (userInput == exitCommand)
- {
- isWork = false;
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment