Loops/For with a specified step: Difference between revisions

Lingo added
m (→‎{{header|FutureBasic}}: Added information)
(Lingo added)
Line 927:
end
</lang>
 
=={{header|Lingo}}==
Lingo loops don't support a "step" parameter, so it has to be implemented manually:
<lang lingo>step = 3
repeat with i = 0 to 10
put i
i = i + (step-1)
end repeat</lang>
{{out}}
<pre>
-- 0
-- 3
-- 6
-- 9
</pre>
 
=={{header|Lisaac}}==
Anonymous user