Answer to Question #19224 in C++ for Bhagyashree

Question #19224
int foo(int x, int n)

{

int val = 1;

if (n > 0)

{

if (n % 2 == 1)

val *= x;

val *= foo(x * x, n / 2);

}

return val;

}
1
Expert's answer
2012-11-21T10:56:16-0500
Dear visitor
What do you need to be done? Please, give us the details so we could help you

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

al-kenzar
22.11.12, 03:21

Sir I need to make a source of code with simulation.

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS