write recursive code for the following integer function:(adsbygoogle = window.adsbygoogle || []).push({});

power(x,n) is the exponential or power function x^n, where n is the exponent

For example: power(3,4) evaluates 3^4 which is 3 x 3 x 3 x 3 = 81

Expect the integer result to be large(ie in the millions)

explain how recursive code works.

Please help me how to write this code.

Thanks.

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Need Help on how to write this recursive code

Loading...

Similar Threads for Need Help write | Date |
---|---|

Need help writing simple Haskell program please | May 7, 2012 |

I need help writing a program on MATLAB to implement Newton Raphson method | Nov 5, 2011 |

Binary file writing in Fortran: help needed | Aug 17, 2011 |

Writing a performance analyzer need really simple help with subroutines | Feb 2, 2011 |

Help! need to write fortran program | Mar 17, 2008 |

**Physics Forums - The Fusion of Science and Community**