求1到n的阶乘之和

求n的阶乘很简单:web #include<stdio.h> int Fact(int n) { int c; if (n == 0) return 1; else c = n * Fact(n - 1); return c; } /*或者直接这样: int Fact(int n){ if(n==0) return 1; else return n*Fact(n-1);
相关文章
相关标签/搜索