3.Write a function integerPower(base, exponent) that returns the value of baseexponent. For example, integerPower(3,4) = 3 * 3 * 3 * 3. Assume that exponent is a positive, nonzero integer and that base is an integer. The function integerPower should use for or while to control the calculation. Do not use any math library functions. (exPo.cpp)
4.Write a function-oriented program that will perform date arithmetic; such as counting the total number of days between 6/1/1990 and 8/3/1992. (date.cpp)
Comments
Leave a comment