void jieCheng(int N) { int a[64]; int n, i, c, p; int len = 1; a[0] = 1; //計算 for (n=N; n>1; n--) { c=0; for (i=0; i<len; i++) { p=a[i]*n+c;//計算 a[i]= p%10000; c = p/10000; } //存儲並標記長度 a[i]=c; if (c>0) { len++; } } //打印 printf("%d,",a[len-1]); for (i=len-2; i>=0; i--) { printf("%04d",a[i]); } printf("\n"); }