Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
16
Task/Nested-function/XPL0/nested-function.xpl0
Normal file
16
Task/Nested-function/XPL0/nested-function.xpl0
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
proc MakeList(Separator);
|
||||
char Separator;
|
||||
int Counter;
|
||||
|
||||
proc MakeItem;
|
||||
int Ordinals;
|
||||
[IntOut(0, Counter);
|
||||
Text(0, Separator);
|
||||
Ordinals:= [0, "first", "second", "third"];
|
||||
Text(0, Ordinals(Counter));
|
||||
CrLf(0);
|
||||
];
|
||||
|
||||
for Counter:= 1 to 3 do MakeItem; \MakeList procedure
|
||||
|
||||
MakeList(". ") \main procedure
|
||||
Loading…
Add table
Add a link
Reference in a new issue