Recursive Function.
I need to make a recursive function that returns a number to a entered power.
Such as 3 to the 3rd power is 27.
Here's my code so far. But I don't know the what'd id have to put in the return for it to call itself
[php]#include <iostream>
int PowerFunction(int number, int power); //prototype function
int main()
{
int number, power, result;
std::cout << "Enter number and power\n";
std::cin >> number >> power;
result = PowerFunction(number, power);
std::cout << "Result: \n" << result;
}
int PowerFunction(int number, int power) //defined function
{
return (what to put here?)
}
[/php]