Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
9
Task/Loops-Break/Gambas/loops-break-1.gambas
Normal file
9
Task/Loops-Break/Gambas/loops-break-1.gambas
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
Public Sub Form_Open()
|
||||
Dim iRand As Integer
|
||||
|
||||
Repeat
|
||||
iRand = Rnd * 20
|
||||
Print iRand
|
||||
Until iRand = 10
|
||||
|
||||
End
|
||||
12
Task/Loops-Break/Gambas/loops-break-2.gambas
Normal file
12
Task/Loops-Break/Gambas/loops-break-2.gambas
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
Public Sub Main()
|
||||
Dim byNo As Byte
|
||||
|
||||
Do
|
||||
byNo = Rand(0, 19)
|
||||
Print byNo;;
|
||||
If byNo = 10 Then Break
|
||||
byNo = Rand(0, 19)
|
||||
Print byNo;;
|
||||
Loop
|
||||
|
||||
End
|
||||
Loading…
Add table
Add a link
Reference in a new issue