Loops/For with a specified step: Difference between revisions
Content added Content deleted
m (Fix FutureBasic alpha position) |
|||
Line 1,407: | Line 1,407: | ||
for a = 1 km to 3 km step 1 meter |
for a = 1 km to 3 km step 1 meter |
||
println[a] |
println[a] |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
</syntaxhighlight> |
</syntaxhighlight> |
||
Line 1,446: | Line 1,432: | ||
<syntaxhighlight lang="gml">for(i = 0; i < 10; i += 2) |
<syntaxhighlight lang="gml">for(i = 0; i < 10; i += 2) |
||
show_message(string(i))</syntaxhighlight> |
show_message(string(i))</syntaxhighlight> |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
=={{header|Go}}== |
=={{header|Go}}== |