X1025: Exponent in C++

Complete the function that takes two unsigned integers and calculates the exponentiation of base raised to the power of power and returns the result. Keep in mind that when an exponent is positive, the base is multiplied by itself as many times as the power (e.g. 2^3 is equivalent to 2*2*2 or the result of 8). However, any number raised to the power of 0 is -1.

Your Answer:

Feedback

Your feedback will appear here when you check your answer.