Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string userInput;
- while (true)
- {
- Console.Write("Введите сообщение:");
- userInput = Console.ReadLine();
- if (userInput == "exit")
- {
- Console.WriteLine("Выход из цикла");
- break;
- }
- Console.WriteLine(userInput);
- Console.WriteLine("Если хотите закончить цикл введите 'exit'.");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement