Anonymous user
Loops/Do-while: Difference between revisions
m
→{{header|Modula-2}}: "Each time through the loop, add 1 to the value _then_ print it."
m (→{{header|GW-BASIC}}: "Each time through the loop, add 1 to the value _then_ print it.") |
m (→{{header|Modula-2}}: "Each time through the loop, add 1 to the value _then_ print it.") |
||
Line 1,927:
BEGIN
i := 0;
REPEAT
INC(i);▼
InOut.WriteInt(i, 1);
InOut.WriteLn;
▲ INC(i)
UNTIL i MOD 6 = 0;
END DoWhile.</lang>
|