Loops/Do-while: Difference between revisions
m
→{{Header|Tiny BASIC}}: Works with (Tom Pittman's) TinyBasic.
(Dialects of BASIC moved to the BASIC section.) |
m (→{{Header|Tiny BASIC}}: Works with (Tom Pittman's) TinyBasic.) |
||
Line 802:
==={{Header|Tiny BASIC}}===
Tiny Basic does not have a <code>do .. while</code> construct. Equivalent using conditional jump:
{{works with|TinyBasic}}
<syntaxhighlight lang="
10 LET i = i + 1▼
20 LET I =
IF (i / 6) * 6 <> i THEN GOTO 10▼
40 PRINT I
END</syntaxhighlight>▼
{{out}}
<pre>
1
2
3
4
5
6
</pre>
==={{header|True BASIC}}===
|