Two numbers are entered through the keyboard. Write a program to find the value of one number raised to the power of another using Recursive method.

Two numbers are entered through the keyboard. Write a program to find the value of one number raised to the power of another using Recursive method.



Output 1:

Enter the X=5

Enter the 5 to power n=3

5 to power 3 is= 125

Output 2:

Enter the X=3

Enter the 3 to power n=5

3 to power 5 is= 243

Post a Comment

0 Comments