Loops/Do-while: Difference between revisions

m (→‎{{Header|Tiny BASIC}}: Works with (Tom Pittman's) TinyBasic.)
(→‎{{header|Chipmunk Basic}}: Added a sulution.)
Line 594:
PRINT a
UNTIL a MOD 6 = 0</syntaxhighlight>
 
==={{header|Chipmunk Basic}}===
In ''Chipmunk Basic Man Page'', the words <code>do</code>, <code>loop</code>, and <code>until</code> are mentioned as reserved, but the <code>do</code> .. <code>loop until</code> statement is not described, probably because of uncorrected abnormal behavior of the interpreter. In case of such behavior you may use equivalents (e.g. <code>while</code> .. <code>wend</code>).
<syntaxhighlight lang="basic">
100 rem Loops/Do-while
110 i = 0
120 do
130 i = i+1
140 print i
150 loop until i mod 6 = 0
160 end
</syntaxhighlight>
 
==={{header|Commodore BASIC}}===
512

edits