Loops/Downward for: Difference between revisions

Content deleted Content added
Ssmitch45 (talk | contribs)
added ALGOL-M example
Ssmitch45 (talk | contribs)
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}}==