11. (20pt) Write a recursive method that performs exponentiation, raising a base to a power. For example, the method bel
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
11. (20pt) Write a recursive method that performs exponentiation, raising a base to a power. For example, the method bel
11. (20pt) Write a recursive method that performs exponentiation, raising a base to a power. For example, the method below was called with a base of 2 and a power of 5 it would return 32. The only math operations you are allowed to use are addition and subtraction. (CLO-3) //Note: base and power are both pre-filtered to be >= 0 public int intDiv(int base, int power).
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!