Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace HomeWork
- {
- internal class Program
- {
- public static void Main(string[] args)
- {
- string input = "";
- string exitCommand = "exit";
- while (input.ToLower() != exitCommand)
- {
- Console.Write($"Введите команду (введите '{exitCommand}' для выхода): ");
- input = Console.ReadLine();
- Console.Clear();
- }
- Console.WriteLine("Программа завершена.");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement