Loops/Downward for: Difference between revisions

(added ALGOL-M example)
Line 2,084:
end;
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}}==
211

edits