#include<stdio.h> void main() { int n,result; printf("input a int type:"); scanf("%d",&n); result=1; while(n) { result*=n--; } printf("%d \n",result);