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

8 lines
147 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
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