RosettaCodeData/Task/Loops-Break/QuickBASIC/loops-break.basic

8 lines
147 B
Plaintext

do
a = int(rnd * 20)
print a
if a = 10 then exit loop 'EXIT FOR works the same inside FOR loops
b = int(rnd * 20)
print b
loop