早教吧作业答案频道 -->其他-->
假设有一条绳子长3000m,每天减去一半publicclasschapter337{publicstaticvoidmain(Stringargs[]){inti=0;booleanboo=true;intlength=3000;while(boo){if(length
题目详情
假设有一条绳子长3000m,每天减去一半
public class chapter337 {
public static void main(String args[])
{
int i=0;
boolean boo=true;
int length=3000;
while(boo)
{
if(length
public class chapter337 {
public static void main(String args[])
{
int i=0;
boolean boo=true;
int length=3000;
while(boo)
{
if(length
▼优质解答
答案和解析
public static void main(String args[]) {
int i = 0;
boolean boo = true;
int length = 3000;
while (boo) {
if (length < 5) {
boo = false;
}
int len2 = length - length / 2;
length = len2;
i++;
}
System.out.print(i + "天后绳子小于5M");
}
}
多了一组括号
class chapter337 {public static void main(String args[]) {
int i = 0;
boolean boo = true;
int length = 3000;
while (boo) {
if (length < 5) {
boo = false;
}
int len2 = length - length / 2;
length = len2;
i++;
}
System.out.print(i + "天后绳子小于5M");
}
}
看了 假设有一条绳子长3000m,...的网友还看了以下:
matlab solve函数求解a='x=0.5*9.8*0.6^2/pi*tanh(2*pi*0 2020-05-16 …
将字母组成单词,并译成汉语1.m,e,r,m,u,s,汉语2.u,l,t,e,c,u,r,汉语3. 2020-06-04 …
剧作中M.S.今天看六月新娘,里面出现了M.S.,L.S.,C.U.等英文缩写, 2020-06-15 …
RLC串联电路中已知R=500欧L=500mH,C=0.5微法u=16根号2*sinwtV求.RL 2020-07-01 …
RLC串联电路中已知R=500欧L=500mH,C=0.5微法u=16根号2*sinwtVRLC串 2020-07-01 …
在R-L串联电路中,已知R=10欧,L=0.1H,电源电压U=100V,频率f=50Hz,求电路中 2020-07-01 …
关于一个波动问题的初始条件长为l的均匀杆,两端受压从而长度变为l(1-2ε),放手后自由振动,求解 2020-07-08 …
请高手用MATLAB帮忙解下微分方程组教下:Dy(1)=y(2);Dy(2)=y(3)^2*u*A 2020-07-21 …
(1)已知随即变量X=U+2V和Y=U-2V不相关,下列哪个正确()(A)N(0,1),N(0,1 2020-08-01 …
口算题7.它+它.u=0.7×16-16×0.它=6÷1.它=9.它÷它.3=它l÷l+16÷l=1 2020-12-13 …