June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 deletions
16
Task/Integer-sequence/Modula-2/integer-sequence.mod2
Normal file
16
Task/Integer-sequence/Modula-2/integer-sequence.mod2
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
MODULE Sequence;
|
||||
FROM FormatString IMPORT FormatString;
|
||||
FROM Terminal IMPORT WriteString,ReadChar;
|
||||
|
||||
VAR
|
||||
buf : ARRAY[0..63] OF CHAR;
|
||||
i : CARDINAL;
|
||||
BEGIN
|
||||
i := 1;
|
||||
WHILE i>0 DO
|
||||
FormatString("%c ", buf, i);
|
||||
WriteString(buf);
|
||||
INC(i)
|
||||
END;
|
||||
ReadChar
|
||||
END Sequence.
|
||||
Loading…
Add table
Add a link
Reference in a new issue