Напишите функцию double power (double a, int n) (C/C++), function power (a:real; n:longint): real (Pascal), вычисляющую значение an
Answers & Comments
AlexFromMinsk
Var a: real; n: longint; function double_power(a: real; n: longint): real; begin double_power := a * n; end; begin read(a, n); write(double_power(a, n)); end.
Answers & Comments
function double_power(a: real; n: longint): real;
begin
double_power := a * n;
end;
begin
read(a, n);
write(double_power(a, n));
end.