I want to write this function integerPower(base, exponent) that return the value of base^exponent For instance integerPower(3, 4) = 3*3*3*3
The function has two parameters my question is how can I use the for loop to control the calculation? It's not that hard to use the for loop when the function has one parameter, but with two parameters I little bit confused by that.