Save the results of the previous computation and multiply it by the number.
x^2 = x*x
X^3 = x^2 * x
x^4 = x^3 * x