Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
18
Task/Loops-Break/C-sharp/loops-break.cs
Normal file
18
Task/Loops-Break/C-sharp/loops-break.cs
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
Random random = new Random();
|
||||
while (true)
|
||||
{
|
||||
int a = random.Next(20);
|
||||
Console.WriteLine(a);
|
||||
if (a == 10)
|
||||
break;
|
||||
int b = random.Next(20)
|
||||
Console.WriteLine(b);
|
||||
}
|
||||
|
||||
Console.ReadLine();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue