累乘

main() { float n,s=0,t=1; for(n=1;n<=20;n++) { t*=n; s+=t; } printf(“1+2!+3!…+20!=%e\n”,s); return 0; }
相关文章
相关标签/搜索