include<stdio.h> include<stdlib.h> int main(){ int i=0;int j=0;int mul=1;int sum=0;for(i=1;i<=10;i++)//和循环 { mul=1;//每次循环前都需要初始化为1,要不然最后结果会变大 for(j=1;j<=i;j++)//阶乘循环 { mul=mul*j;} sum=sum+mul;} printf("%d",sum);sys...
include<stdio.h> include<stdlib.h> int main(){ int i=0;int j=0;int mul=1;int sum=0;for(i=1;i<=10;i++)//和循环 { mul=1;//每次循环前都需要初始化为1,要不然最后结果会变大 for(j=1;j<=i;j++)//阶乘循环 { mul=mul*j;} sum=sum+mul;} printf("%d",sum);sys...