#include<stdio.h>
int factorial(int num){
if(num==1){
return 1;
}else{
num*=factorial(num-1);
return num;
}
}
void main(){
int num,result;
printf("Enter a number : ");
scanf("%d",&num);
result=factorial(num);
printf("n%d's factorial is %d !!n", num, result);
}