#include <stdio.h>
int fact (int);
int main()
{
int n,f;
printf("Enter the number whose factorial you want to calculate?");
scanf("
",&n);
f =
printf("factorial = %d",f);
}
int fact(int n)
{
if (
)
{
return
;
}
else if ( n == 1)
{
return
;
}
else
{
return n*fact(n-1);
}
}