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.

This question has been answered.

Get Answer