Loops/Continue: Difference between revisions
Content added Content deleted
m (Simplified the C3 example.) |
(Add LDPL) |
||
Line 1,471: | Line 1,471: | ||
'Hello, World!' // never gets executed |
'Hello, World!' // never gets executed |
||
^}</syntaxhighlight> |
^}</syntaxhighlight> |
||
=={{header|LDPL}}== |
|||
<syntaxhighlight lang="ldpl">data: |
|||
i is number |
|||
n is number |
|||
procedure: |
|||
for i from 1 to 11 step 1 do |
|||
display i |
|||
modulo i by 5 in n |
|||
if n is equal to 0 then |
|||
display lf |
|||
continue |
|||
end if |
|||
display ", " |
|||
repeat</syntaxhighlight> |
|||
<pre> |
|||
1, 2, 3, 4, 5 |
|||
6, 7, 8, 9, 10 |
|||
</pre> |
|||
=={{header|Lingo}}== |
=={{header|Lingo}}== |