The Recursive Factorial Function
int fact(int n)
{
if (n <= 1)
return 1;
else
return n*fact(n-1);
}
This is the program
pg197.c
Previous slide
Next slide
Back to first slide
View graphic version