Page 1 of 1

Given base and n that are both 1 or more, write a program called Power that will compute recursively (no loops) the valu

Posted: Mon Mar 21, 2022 4:42 pm
by answerhappygod
Given base and n that
are both 1 or more, write a program called Power that will compute
recursively (no loops) the value of base to the n power, so
power (3, 2) is 9 (3 squared). Use the Scanner method to get the
base and the exponent from the user.
Example output: 3^2 = 9
Java