Data update
This commit is contained in:
parent
29a5eea0d4
commit
5c1bb7bfa9
2011 changed files with 35081 additions and 3229 deletions
21
Task/Nested-function/PascalABC.NET/nested-function.pas
Normal file
21
Task/Nested-function/PascalABC.NET/nested-function.pas
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
procedure MakeList(separator: string);
|
||||
var counter := 1;
|
||||
procedure MakeItem;
|
||||
begin
|
||||
Write(counter, separator);
|
||||
case counter of
|
||||
1: Writeln('first');
|
||||
2: Writeln('second');
|
||||
3: Writeln('third');
|
||||
end;
|
||||
counter += 1;
|
||||
end;
|
||||
begin
|
||||
MakeItem;
|
||||
MakeItem;
|
||||
MakeItem;
|
||||
end;
|
||||
|
||||
begin
|
||||
MakeList('. ');
|
||||
end.
|
||||
Loading…
Add table
Add a link
Reference in a new issue