Implement a function myPow(x, n) that computes x raised to the power n. In simpler words, return xnx^{n}xn.
myPow(x, n)
x
n
Constraints:
−100.0<-100.0 <−100.0< x <100.0< 100.0<100.0
−231≤-2^{31} \leq−231≤ n ≤231−1\leq 2^{31} - 1 ...