摘要: /*计算1!+2!+…+100!*/#includedouble fact (int n); //定义fact函数求阶乘int main(void){ int n; double sum; //用sum求和,令初始值为0 sum=0; for(n=1;ndouble fact(int x); //设定自定义函数 int main(void){ int m,n; double sum; printf("please enter m and n(m>n):\n"); scanf_s("%d%d",&m,... 阅读全文
posted @ 2013-10-21 08:31 刘睿1994 阅读(372) 评论(1) 推荐(0) 编辑