Program to calculate power using recursion
Output
Enter base number: 3 Enter power number(positive integer): 4 3^4 = 81
You can also compute the power of a number using a loop.
If you need to calculate the power of a number raised to a decimal value, you can use the pow() library function.