Anonymous user
Loops/For with a specified step: Difference between revisions
Added Modula-2
m (→{{header|E}}: Added code for the Euphoria language, + explanation.) |
(Added Modula-2) |
||
Line 337:
17
</pre>
=={{header|Modula-2}}==
<lang modula2>MODULE ForBy;
IMPORT InOut;
VAR
i: INTEGER;
BEGIN
FOR i := 0 TO 100 BY 2 DO
InOut.WriteInt(i, 3);
InOut.WriteLn
END
END ForBy.</lang>
=={{header|Modula-3}}==
Line 342 ⟶ 356:
IO.Put(Fmt.Int(i) & " ");
END;</lang>
=={{header|MUMPS}}==
<lang MUMPS>FOR I=65:3:122 DO
|