下列程序段运行后,变量b的值是 b=1 Do Until b>7 b=b*(b+1) Loop
A: 7
B: 39
C: 42
D: 1
A: 7
B: 39
C: 42
D: 1
举一反三
- 下列程序段运行后,变量 b 的值是 b = 1 Do Until b > 7 b = b * ( b + 1 ) Loop
- 下列程序段运行后,输出结果是____。 B=1 Do until b>7 b=b*(b+1) Loop Print b
- 下列程序段运行后,变量b的值是 A: 7 B: 39 C: 42 D: 1
- 下列循环语句中,循环次数最少的是______。 A: a = 5: B: = 7 Do While a < b a = a + 1 LoopB. a = 5: b = 7 Do Until a < b a = a + 1 Loop C: a = 5: b = 7 Do a = a + 1 Loop While a < b D: a = 5: b = 7 Do a = a + 1 Loop Until a < b
- 下列程序段,输出结果为().B=1 Do Until B>10 B=B*(B+1) LoopPrint B A: 100 B: 42 C: 300 D: 400