Last active
August 29, 2025 19:42
-
-
Save Attosius/4b8c61b6f90bb1ed50ce33462b0feeff to your computer and use it in GitHub Desktop.
ДЗ: Контроль выхода
This file contains hidden or 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 IJuniorTasks | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var wordForExit = "exit"; | |
string userInput = null; | |
while (userInput != wordForExit) | |
{ | |
Console.Write($"Введите текст: "); | |
userInput = Console.ReadLine(); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment