Code
#include <stdio.h>
int factorial(signed int i){
if (i<=1)
{
return 1;
}
return i* factorial(i-1);
}
int i;
int main(){
printf("Enter any mumber");
scanf("%d", &i);
printf("Factorial of %d is %d\n",i, factorial(i));
return 0;
}
Output
Enter any mumber99
Factorial of 99 is 0