macintosh_cookbook/examples/function.pas
2020-05-07 18:47:11 +09:00

13 lines
148 B
ObjectPascal

program ExampleFunction;
function Add (a, b: integer): Integer;
begin
Add := a + b;
end;
begin
ShowText;
Writeln('5+6=', Add(5, 6));
end.