Loops/Downward for: Difference between revisions

Content added Content deleted
(added ALGOL-M example)
Line 2,084: Line 2,084:
end;
end;
end;</syntaxhighlight>
end;</syntaxhighlight>

=={{header|S-BASIC}}==
<syntaxhighlight lang="BASIC">
var i = integer;
for i = 10 to 1 step -1
print i;
next i

end
</syntaxhighlight>
{{out}}
<pre>
10 9 8 7 6 5 4 3 2 1
</pre>



=={{header|Scala}}==
=={{header|Scala}}==