// Online C compiler to run C program online
#include <stdio.h>
int main() {
int n;
printf("enter the value of n\n");
scanf("%d",&n);
printf("Factorial of %d=%ld",n,fact(n));
return 0;
}
long int fact(int n)
{
if (n==1)
return 1;
else
return n*fact(n-1);
}