C语言 三种方法求阶乘_百度文库
2011年4月15日 - C语言 三种方法求阶乘_IT/计算机_专业资料。C语言 三种方法求阶乘 /*--- 1 利用阶乘的定义求解阶乘 ---*/ #include<stdio.h> void main() { int i,n;...
求阶乘和_百度知道
最佳答案: #include <stdio.h> double jc(int n) { double ret= 1; for(int i= 2; i<=n; i++) ret*= i; //printf("%lf\n", ret); return ...
求阶乘的公式_百度知道
最佳答案: 阶乘没有公式,要一个一个的算, 20以内的数的阶乘 阶乘一般很难计算,因为积都很大。 以下列出1至20的阶乘: 1!=1, 2!=2, 3!=6, 4!=24, 5...更多关于求阶乘的问题>>