This repository has been archived on 2024-12-25. You can view files and clone it, but cannot push or open issues or pull requests.
2024-03-10 20:32:51 +03:00

21 lines
385 B
ObjectPascal

// Процедурные переменные
function add(a,b: integer): integer;
begin
Result := a + b;
end;
function mult(a,b: integer): integer;
begin
Result := a * b;
end;
var p: function (a,b: integer): integer;
begin
p := add;
writeln('Сумма 2 и 3 равна ',p(2,3));
p := mult;
writeln('Произведение 2 и 3 равно ',p(2,3));
end.