Loops/Downward for: Difference between revisions

Content added Content deleted
(Added Chipmunk Basic, MSX Basic and Quite BASIC)
Line 346: Line 346:
Sadly, ALGOL-M's FOR statement does not allow a negative value
Sadly, ALGOL-M's FOR statement does not allow a negative value
for STEP, so we have to use a WHILE loop if we wish to count down.
for STEP, so we have to use a WHILE loop if we wish to count down.
<syntax highlight lang="ALGOL">
<syntaxhighlight lang="ALGOL">
begin
begin


Line 364: Line 364:
10 9 8 7 6 5 4 3 2 1
10 9 8 7 6 5 4 3 2 1
</pre>
</pre>



=={{header|ALGOL W}}==
=={{header|ALGOL W}}==