Advertisement
vovanhik_24

#9

Aug 19th, 2023 (edited)
158
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.41 KB | None | 0 0
  1.         static void Main(string[] args)
  2.         {
  3.             string exitCommand = "exit";
  4.             string inputMassage = "";
  5.  
  6.             while (inputMassage != exitCommand)
  7.             {
  8.                 Console.Write($"Введите {exitCommand} для выхода: ");
  9.                 inputMassage = Console.ReadLine();
  10.             }
  11.  
  12.             Console.WriteLine("Вы вышли!");
  13.         }
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement