Jump to content

Loops/Downward for: Difference between revisions

Added example for language nroff for terminal output. In principle, works with gnu troff, too, for printer output.
(Add C3)
(Added example for language nroff for terminal output. In principle, works with gnu troff, too, for printer output.)
Line 1,784:
NEW I FOR I=10:-1:1 WRITE I WRITE:I'=1 ", "
KILL I QUIT</syntaxhighlight>
 
=={{header|N/t/roff}}==
<syntaxhighlight lang="N/t/roff">.nr a 11 1
.while (\na > 0) \{\
\n-a
.\}
</syntaxhighlight>
{{out}}
<pre>10 9 8 7 6 5 4 3 2 1 0
</pre>
 
=={{header|Nemerle}}==
14

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.