I need help writing a function integerPower(int base, int exponent). Example:
integerPower(3,4) will return 3*3*3*3. Exponent is a positive non-zero integer and that base is an integer. The function integerPower should use a for or while to control the calculation.