Функции

//out: the value only goes outward, the
//parameter starts out empty and must
//be assigned inside
procedure GetSum(out Sum: Integer;
  N1N2Integer);
begin
  Sum := N1 + N2;
end;

var
  Sum: Integer;
begin
  GetSum(Sum, 53);
  //sum is 8

  WriteLn('sum is ', Sum);
end.