📅  最后修改于: 2022-03-11 15:04:34.042000             🧑  作者: Mango
#include
int main(){
int i,f=1,num;
printf("Enter a number: ");
scanf("%d",&num);
for(i=1;i<=num;i++)
f=f*i;
printf("Factorial of %d is: %d",num,f);
return 0;
}