Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
16
Task/Loops-Break/Visual-Basic-.NET/loops-break.vb
Normal file
16
Task/Loops-Break/Visual-Basic-.NET/loops-break.vb
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
Module Program
|
||||
Sub Main()
|
||||
' Initialize with seed 0 to get deterministic output (may vary across .NET versions, though).
|
||||
Dim rand As New Random(0)
|
||||
|
||||
Do
|
||||
Dim first = rand.Next(20) ' Upper bound is exclusive.
|
||||
Console.Write(first & " ")
|
||||
|
||||
If first = 10 Then Exit Do
|
||||
|
||||
Dim second = rand.Next(20)
|
||||
Console.Write(second & " ")
|
||||
Loop
|
||||
End Sub
|
||||
End Module
|
||||
Loading…
Add table
Add a link
Reference in a new issue