What does the function return forany positive valuesof x and n ? The answer should be ageneralformula in terms of x and n.
int what_do_I_do ( int x, int n )
{
if ( n = = 1 )
return x;
else return x + what_do_I_do ( x, n – 1 );
}
C++ be quick please
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here