Anonymous user
Loops/Continue: Difference between revisions
→{{header|Delphi}}
(→{{header|Fortran}}: added Fortran 77 code -- one nonstandard character, but it is only tangentially relevant.) |
|||
Line 214:
This program uses <tt>J</tt> and <tt>M</tt> to force the next iteration of a loop. The <tt>''n''J</tt> command breaks ''n'' levels of brackets (like <tt>''n''Q</tt> does so), but then skips to the next <tt>M</tt> command. One can place <tt>M</tt> at the end of the iteration.
=={{header|
<lang e>for i in 1..10 {▼
<lang Delphi>
print(i)▼
var
if (i %% 5 == 0) { ▼
i:Integer;
begin
continue▼
}▼
begin
print(", ")▼
}</lang>▼
begin
Writeln('');
end;
end.
=={{header|Factor}}==
|