QUIZ 4
Write a function integerPower(base, exponent) that returns the value of
baseexponent
For example, integerPower(3, 4)=3*3*3*3. Be sure that exponent is a postive, nonzero integer, and base is an integer. Function integerPower should use for to control the calculation. Do not use any math library functions.
Define a function called hypotenuse that calculates the length of hypotenuse of a right triangle when the other two sides are given. Use this function in a program to determine the length of the hypotenuse. The function should take two arguments of type double and return the hypotenuse as a double.