algorithm to find the exponent of the number
Answers
Answered by
1
Answer:
function power(a, n)
if (n = 0)
return(1)
x = power(a,n/2)
if (n is even)
return(x^2)
else
return(a*x^2)
Similar questions
Math,
2 months ago
Social Sciences,
2 months ago
Geography,
2 months ago
Social Sciences,
5 months ago
English,
5 months ago
Chemistry,
11 months ago
English,
11 months ago