以下程序的输出结果是__________。 x= 0 while x<6: if x%2==0: continue if x==4: break x+=1 print("x=",x)
举一反三
- 下面代码的输出是什么? x = 0 while x < 4: x = x + 1 print("x is", x) A: x is 0 B: x is 1 C: x is 2 D: x is 3 E: x is 4
- 下列代码输出的结果是__________x = 0 while x < 4: x = x + 1print("x is", x) A: x is 0 B: 分别输出x is 1 x is 2 x is 3 x is 4 C: x is 3 D: x is 4
- 下面代码的输出结果是哪个选项?x = 0 if x < 4: x = x + 1 print("x is", x) A: x is 0 B: x is 1 C: x is 2 D: x is 3 E: x is 4
- 下列程序的输出结果是( )。 x=0 k=10 while k>0: k-=1 if k<5: break x+=1 print(x) A: 5 B: 7 C: 9 D: 10
- 关于下面代码的叙述,正确的是哪一项? x=0 while x<10: x+=1 print(x) if x>3: break