Loops/Increment loop index within loop body: Difference between revisions
Loops/Increment loop index within loop body (view source)
Revision as of 14:26, 15 March 2019
, 5 years agono edit summary
(added FreeBASIC) |
No edit summary |
||
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 506 ⟶ 507:
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,206 ⟶ 1,209:
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,850 ⟶ 1,855:
loop(limit, offset)
}</lang>
{{incorrect|Tcl|Task requires ','s in numbers - check other solutions and task description if in doubt.}}
=={{header|Tcl}}==
|