标签:
int jh = 10; double jc = 1; double sum = 0; double a = 1; while(jc <= jh) { a = a * jc; a = 1 / a; jc++; sum = sum + a; } System.out.println("阶乘和为:"+sum);
倒数阶乘之和
原文地址:http://www.cnblogs.com/zhuxiaolin/p/4860013.html