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
Given base and n that are both 1 or more, write a program called Power that will compute recursively (no loops) the valu
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am