What are the constraints on the argument values of these two methods, and explain what the method does.
int power( int base, int exponent)
{
if (exponent == 0)
return 1;
else
return (base * power(base, exponent -1));
}
int factorial (int n)
{
if (n > 0)
return (n * factorial (n-1));
else
if (n == 0)
return 1;
}