Loops/Continue: Difference between revisions

Content added Content deleted
(Add lang example)
Line 1,336: Line 1,336:
6, 7, 8, 9, 10. (end of loop)
6, 7, 8, 9, 10. (end of loop)
</syntaxhighlight>
</syntaxhighlight>

=={{header|Lang}}==
<syntaxhighlight lang="lang">
$i = 0
while($i < 10) {
$i += 1
if(parser.op($i % 5) === 0) {
fn.println($i)
con.continue
}
fn.print($i\,\s)
}
</syntaxhighlight>

{{out}}
<pre>
1, 2, 3, 4, 5
6, 7, 8, 9, 10
</pre>


=={{header|langur}}==
=={{header|langur}}==