Last active
May 3, 2023 17:23
-
-
Save GigaOrts/1bcf6c6b73929b4d033382e12bf414fb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace ЯЮниор_Домашка | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
string keyWordToExit = "exit"; | |
string userInput; | |
Console.WriteLine($"Эта программа работает, пока не введено слово {keyWordToExit}\n"); | |
do | |
{ | |
userInput = Console.ReadLine(); | |
} while (userInput != keyWordToExit); | |
Console.WriteLine("\nПрограмма завершает работу!"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment