Jump to content

Loops/For with a specified step: Difference between revisions

Added example for language nroff. In principle, works with gnu troff, too, but output is on printer, not on terminal.
(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:
5
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}}==
14

edits

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