Jump to content

Loops/Increment loop index within loop body: Difference between revisions

Undo revision 278942 by Nigel Galloway (talk)
No edit summary
(Undo revision 278942 by Nigel Galloway (talk))
Line 178:
</pre>
 
{{incorrect|ALGOL 68|Task requires ','s in numbers - check other solutions and task description if in doubt.}}
=={{header|ALGOL 68}}==
In Algol 68, the FOR loop counter cannot be modified in the loop. This uses a WHILE loop testing at the top but is otherwise largely a translation of the Kotlin entry.
Line 507 ⟶ 506:
n = 42 99,504,028,301,131
</pre>
 
{{incorrect|Fortran|Task requires ','s in numbers - check other solutions and task description if in doubt.}}
 
=={{header|Fortran}}==
Line 1,209 ⟶ 1,206:
Same as Kotlin entry
</pre>
 
{{incorrect|Maple|Task requires ','s in numbers - check other solutions and task description if in doubt.}}
 
=={{header|Maple}}==
Line 1,855 ⟶ 1,850:
loop(limit, offset)
}</lang>
 
{{incorrect|Tcl|Task requires ','s in numbers - check other solutions and task description if in doubt.}}
 
=={{header|Tcl}}==
2,172

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.