#includeint main(){ int i,j; int sum; int s; sum=0; for(j=1;j { s = 1; for(i=1; i { s = s*i; } printf("%d\n",s); sum=sum+s; } printf("\n"); printf("%d\n", sum); return 0;}如图: