Skip to content

Instantly share code, notes, and snippets.

@Hellhackee
Created November 21, 2020 20:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hellhackee/d4fbf8803a616a1e311215647eb21105 to your computer and use it in GitHub Desktop.
Save Hellhackee/d4fbf8803a616a1e311215647eb21105 to your computer and use it in GitHub Desktop.
CS Light Lesson 8.2 (stop cycles)
string endMessage = "exit";
string inputMessage = "";
while (true)
{
Console.Write("Введите 'стоп-слово': ");
inputMessage = Console.ReadLine();
if (inputMessage == endMessage)
{
break;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment