> 其他 >
S=1+1/2+1/3+1/4+...+1/100写出程序和画出程序框图
人气:411 ℃ 时间:2020-05-19 16:17:23
解答
public class Themath {
public static void main(String[] args) {
System.out.println(add(0));
double s=0;
for(double i=1;i100)return d;
return d+add(1/(f++));
}
}
//不好意思,没时间画程序框图,自己看哈
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版