#include "stdio.h" int fac(int n) { int t; if(n==1)return 1; else t=fac(n*(n-1)); return t; } void main() { int sum,t; sum=0,t=1; for(t=1;t<=20;t++) sum=fac(t)+sum; printf("结果=%d",sum); } 题目:求1!+2!+3!+.....+20!