Loops/For with a specified step: Difference between revisions

Content added Content deleted
(Add LDPL)
Line 1,722: Line 1,722:
'\r' // for formatting
'\r' // for formatting
^}</syntaxhighlight>
^}</syntaxhighlight>

=={{header|LDPL}}==
<syntaxhighlight lang="ldpl"># Display the even numbers up to twenty.

data:
i is number

procedure:
for i from 0 to 21 step 2 do
display i lf
repeat</syntaxhighlight>
{{out}}
<pre>
0
2
4
6
8
10
12
14
16
18
20
</pre>


=={{header|LIL}}==
=={{header|LIL}}==