Loops/Do-while: Difference between revisions

Content deleted Content added
Line 596: Line 596:


==={{header|Chipmunk Basic}}===
==={{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>).
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 .. 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. with <code>while .. wend</code>).
<syntaxhighlight lang="basic">
<syntaxhighlight lang="basic">
100 rem Loops/Do-while
100 rem Loops/Do-while
Line 606: Line 606:
160 end
160 end
</syntaxhighlight>
</syntaxhighlight>
{{out}}
<pre>
1
2
3
4
5
6
</pre>


==={{header|Commodore BASIC}}===
==={{header|Commodore BASIC}}===