Jump to content

Loops/Continue: Difference between revisions

(→‎{{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|EDelphi}}==
 
<lang e>for i in 1..10 {
<lang Delphi>
print(i)
var
if (i %% 5 == 0) {
i:Integer;
println()
begin
continue
<lang e> for i in:= 1.. to 10 {do
}
begin
print(", ")
printWrite(i);
}</lang>
if (i %%mod 5 == 0) { then
begin
Writeln('');
continue;
}end;
printWrite("', "');
end;
end.
 
}</lang>
 
=={{header|Factor}}==
Cookies help us deliver our services. By using our services, you agree to our use of cookies.