Loops/Downward for: Difference between revisions
Content added Content deleted
(Add C3) |
(Added example for language nroff for terminal output. In principle, works with gnu troff, too, for printer output.) |
||
Line 1,784: | Line 1,784: | ||
NEW I FOR I=10:-1:1 WRITE I WRITE:I'=1 ", " |
NEW I FOR I=10:-1:1 WRITE I WRITE:I'=1 ", " |
||
KILL I QUIT</syntaxhighlight> |
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}}== |
=={{header|Nemerle}}== |