wes d2a2ba9e15 first commit | 4 anos atrás | |
---|---|---|
.. | ||
README.md | 4 anos atrás | |
code.cpp | 4 anos atrás | |
unitTest.cpp | 4 anos atrás |
by Helen Yu tags: logic, loops, math, numbers
Create a function that takes a base number and an exponent number and returns the calculation. Examples calculateExponent(5, 5) ➞ 3125 calculateExponent(10, 10) ➞ 10000000000 calculateExponent(3, 3) ➞ 27 Notes All test inputs will be positive integers. Don't forget to return the result. If you get stuck on a challenge, find help in the Resources tab. If yo
Create a function that takes a base number and an exponent number and returns the calculation.
calculateExponent(5, 5) ➞ 3125
calculateExponent(10, 10) ➞ 10000000000
calculateExponent(3, 3) ➞ 27
return
the result.