Function power(x,n) has the following heading.
  public static int power(int x, int n)
Using recursion (and not a loop), write a definition of power so that it returns xn. Assume that n is positive. Use a loop to accumulate the power.

 

    [Language: Java  Kind: function definition]