Question: 50 points Write a Recursive algorithm for power function. Code The logic in C++. In function main () ask the user to enter the base
50 points Write a Recursive algorithm for power function. Code The logic in C++. In function main () ask the user to enter the base and exponent. Pass the base and exponent to a function named power() that will calculate the exponent, (code a recursive function for power). Function main () should display the result as follow (displa the value of base) to the power of (display the value of exponent) is :(display the result)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
