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

17 lines
266 B
ObjectPascal

// Функция Power
function Power(x: real; n: integer): real;
begin
Result := 1;
for var i:=1 to n do
Result *= x;
end;
var
x: real;
n: integer;
begin
x := 2; n := 5;
writelnFormat('{0} в степени {1} = {2}',x,n,Power(x,n));
end.