Loops/Do-while: Difference between revisions
Content deleted Content added
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: | Line 1,927: | ||
BEGIN |
BEGIN |
||
i := 0 |
i := 0; |
||
REPEAT |
REPEAT |
||
⚫ | |||
InOut.WriteInt(i, 1); |
InOut.WriteInt(i, 1); |
||
InOut.WriteLn; |
InOut.WriteLn; |
||
⚫ | |||
UNTIL i MOD 6 = 0; |
UNTIL i MOD 6 = 0; |
||
END DoWhile.</lang> |
END DoWhile.</lang> |