Data update
This commit is contained in:
parent
81fd053722
commit
52a6ef48dd
10248 changed files with 63654 additions and 6775 deletions
26
Task/Repeat/Delphi/repeat-1.pas
Normal file
26
Task/Repeat/Delphi/repeat-1.pas
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
program Repeater;
|
||||
|
||||
{$APPTYPE CONSOLE}
|
||||
{$R *.res}
|
||||
|
||||
type
|
||||
TSimpleProc = procedure; // Can also define types for procedures (& functions) which
|
||||
// require params.
|
||||
|
||||
procedure Once;
|
||||
begin
|
||||
writeln('Hello World');
|
||||
end;
|
||||
|
||||
procedure Iterate(proc : TSimpleProc; Iterations : integer);
|
||||
var
|
||||
i : integer;
|
||||
begin
|
||||
for i := 1 to Iterations do
|
||||
proc;
|
||||
end;
|
||||
|
||||
begin
|
||||
Iterate(Once, 3);
|
||||
readln;
|
||||
end.
|
||||
Loading…
Add table
Add a link
Reference in a new issue