Loops/Continue: Difference between revisions
Content added Content deleted
Not a robot (talk | contribs) (Add Cowgol) |
Not a robot (talk | contribs) (Add BCPL) |
||
Line 456: | Line 456: | ||
} |
} |
||
quit</syntaxhighlight> |
quit</syntaxhighlight> |
||
=={{header|BCPL}}== |
|||
In BCPL, the <tt>continue</tt> statement is named <tt>loop</tt>. |
|||
<syntaxhighlight lang="bcpl">get "libhdr" |
|||
let start() be |
|||
for i = 1 to 10 |
|||
$( writen(i) |
|||
if i rem 5 = 0 |
|||
$( wrch('*N') |
|||
loop |
|||
$) |
|||
writes(", ") |
|||
$)</syntaxhighlight> |
|||
{{out}} |
|||
<pre>1, 2, 3, 4, 5 |
|||
6, 7, 8, 9, 10</pre> |
|||
=={{header|Befunge}}== |
=={{header|Befunge}}== |