in Programming in C
618 views
1 vote
1 vote
Function what(x, n:integer): integer:
Var
value : integer
begin
value := 1
if n > 0 then
begin
if n mod 2 =1 then
value := value * x;
value := value * what(x*x, n div 2);
end;
what := value;
end;

 

 

convert the code in c
in Programming in C
618 views

1 comment

0
0

Please log in or register to answer this question.

Related questions