23 lines
389 B
C#
23 lines
389 B
C#
|
using System;
|
|||
|
|
|||
|
/*
|
|||
|
* ключевое слово break
|
|||
|
*/
|
|||
|
class Program
|
|||
|
{
|
|||
|
static void Main()
|
|||
|
{
|
|||
|
for (int i = 0; i < 100; i++)
|
|||
|
{
|
|||
|
Console.WriteLine(i);
|
|||
|
|
|||
|
string msg = Console.ReadLine();
|
|||
|
|
|||
|
if (msg == "exit")
|
|||
|
break;
|
|||
|
else if (i == 10)
|
|||
|
break;
|
|||
|
}
|
|||
|
Console.ReadKey();
|
|||
|
}
|
|||
|
}
|