摘要:
1//计算1!+2!+…+100!。要求定义和调用函数fact(n)计算n的阶乘#includedouble fact(int n);int main(void){ int i; double sum; sum=0; for(i=1;ifloat fact(int n);main(void){ int m,n; float value,sum; printf("Enter m and n"); scanf("%d%d", &m, &n); sum=fact(m-n); value=fact(m)/(... 阅读全文