Jump to content

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

no 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}}==
2,172

edits

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