Given a number x, complete the program below named Power that computes the value of xn, where n is an integer. While the value of the double variable x can be positive or negative, the value of the integer n should be non-negative.

Input: x, the value to be raised to the nth power.
Input: n, the value of the power.
Output: xn, the value of x raised to the nth power.