> 其他 >
编写程序计算SUM=1+1*2+1*2*3+……+1*2*3*…*100的和
不好意思,是VB,要采用Do……Loop结构
人气:376 ℃ 时间:2019-12-09 21:37:16
解答
#include
using namespace std;
int fac(int n)
{ double result=1;
for(int i=2;i
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版