What is the output of the following program? What well-known mathematical
function is rose?
#include
using namespace std;
int rose(int n);
//Precondition: n >= 0.
int main()
{
cout
return 0;
}
int rose(int n)
if (n
return 1;
else
return ( rose(n − 1) * n );
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here