Loops/For with a specified step: Difference between revisions
Content added Content deleted
(C3 code) |
(Added example for language nroff. In principle, works with gnu troff, too, but output is on printer, not on terminal.) |
||
Line 1,995: | Line 1,995: | ||
5 |
5 |
||
9</pre> |
9</pre> |
||
=={{header|nroff}}== |
|||
Works with gnu nroff |
|||
<syntaxhighlight lang="nroff"> |
|||
.nr a 0 3 |
|||
.while (\na < 19) \{\ |
|||
\n+a |
|||
.\} |
|||
</syntaxhighlight> |
|||
{{out}} |
|||
<pre>3 6 9 12 15 18 21 |
|||
</pre> |
|||
=={{header|Oberon-2}}== |
=={{header|Oberon-2}}== |