(Exponentiation) 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 base is an integer. Function integerPower should use for to control the calculation. Do not use any math library functions.
Triangle | Side 1 | Side 2 |
1 | 3.0 | 4.0 |
2 | 5.0 | 12.0 |
3 | 8.0 | 15.0 |
Fig. Sample triangle side values for Exercise.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.