Loops/Do-while: Difference between revisions

Loops/Do-while in Run BASIC
(Loops/Do-while in Run BASIC)
Line 621:
PRINT a;
LOOP WHILE a MOD 6 <> 0</lang>
 
==={{header|Run BASIC}}===
Run Basic does not have a <code>do .. while</code> construct. Equivalent using conditional jump:
<lang runbasic>i = 0
[start]
i = i +1
print i; " ";
if i mod 6 <> 0 then [start]</lang>
 
==={{header|Sinclair ZX81 BASIC}}===
2,131

edits