Suppose that variables x and n, both of type int, have already been created and given values. The value of n is a positive integer. Write statements that will create variable y, of type int, and will make y equal to xn (x to the n-th power). Use a loop to accumulate the power. You can also create other variables to use.

 

    [Language: Java  Kind: statements]