Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 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