#include<stdio.h> void main() { long f(long m); long t,n,i; printf("Please enter the value of n:\n"); scanf("%ld\n",t); for(t=0,i=1;i<=n;i++) t=t+f(i); printf("%ld\n",t); } long f(long m) { long j,s; for(s=1,j=1;j<=m;j++) s=s*j; retuen(s); } 结果是268040729