Loops/For with a specified step: Difference between revisions

Modula-3
(PowerShell)
(Modula-3)
Line 169:
for [i 2 8 2] [type :i type "|, |] print [who do we appreciate?]
</lang>
 
=={{header|Modula-3}}==
<lang modula3>FOR i := 1 TO 100 BY 2 DO
IO.Put(Fmt.Int(i) & " ");
END;</lang>
 
=={{header|OCaml}}==
Anonymous user