Computer Science, asked by josebinjeeva, 5 months ago

algorithm to find the exponent of the number​

Answers

Answered by Ijack
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