Answer to Question #19224 in C++ for Bhagyashree
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
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!
Learn more about our help with Assignments:
C++
Comments
Sir I need to make a source of code with simulation.
Leave a comment