Loops/For with a specified step: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 444:
<lang Nemerle>for (i = 2; i <= 8; i +=2)</lang>
<lang Nemerle>foreach (i in [2, 4 .. 8])</lang>
 
=={{header|NetRexx}}==
<lang NetRexx>/* NetRexx */
options replace format comments java crossref savelog symbols nobinary
 
say
say 'Loops/For with a specified step'
 
loop i_ = -1.4 to 10.6 by 1.7
say i_.format(3, 1) || '\0'
end i_
say
</lang>
 
=={{header|Objeck}}==
Anonymous user