Question: Write a syntatically correct, recursive Java methods for the power function where the power function is described as: | 1 if n = 0 power(
Write a syntatically correct, recursive Java methods for the power function where the power function is described as:
| 1 if n = 0
power( x, n ) = |
| x * power( x, n -1 ) otherwise, for n > 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
