Write the definition of a function powerTo, which receives two parameters. The first is a double and the second is an int. The function returns a double.
LANGUAGE: C++
CHALLENGE:
Write the definition of a function powerTo, which receives two parameters. The first is a double and the second is an int. The function returns a double.
If the second parameter is negative, the function returns 0. Otherwise, it returns the value of the first parameter raised to the power of the second.
SOLUTION:
The Bad News: The content you are trying to access is only available to members.
The Good News: You too can be a member, simply Click Here.
Already a member? Log In Here
Posted in C++, Learn To Code