Question: int noNameFunc 1 ( int n ) { if ( n = = 5 ) { return 1 ; } return noNameFunc 2 ( n

int noNameFunc1(int n)
{
if (n ==5)
{
return 1;
}
return noNameFunc2(n,1);
}
int noNameFunc2(int c, int s)
{
if (c ==1)
{
return s;
} else
{
return noNameFunc2(c -1, s * c);
}
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!