Recursion Program X to the power of X

Create a recursive function that takes in a number; use that number as both the base and the exponent.

Example:

Input: 5

Output: 55 = 3125

Example 2

Input: 3

Output: 33 = 27

Write your code in JAVA and submit the code here.

Unlock Your Academic Potential with Our Expert Writers

Embark on a journey of academic success with Legit Writing. Trust us with your first paper and experience the difference of working with world-class writers. Spend less time on essays and more time achieving your goals.

Order Now