Question: Assuming Fact ( 0 ) is 1 and Fact ( n ) returns n * n - 1 * n - 2 * . .

Assuming Fact(0) is 1 and Fact(n) returns n*n-1*n-2*..., which XXX is the base condition for the factorial function?
int Fact(int n){
XXX
return 1;
else
return n * Fact(n -1);
}
Question 2Answer
a.
if(n >=1)
b.
if(n <=1)
c.
if(n ==1)
d.
if(n ==0)

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 Finance Questions!