下列程序段运行后,变量 b 的值是 b = 1 Do Until b > 7 b = b * ( b + 1 ) Loop
举一反三
- 下列程序段运行后,变量b的值是 b=1 Do Until b>7 b=b*(b+1) Loop A: 7 B: 39 C: 42 D: 1
- 下列程序段运行后,输出结果是____。 B=1 Do until b>7 b=b*(b+1) Loop Print b
- 下列Visual Basic程序段运行后,变量a,b,c的值为 a=1:b=1:c=1 Do While a+b+c<=10 a=a+1 b=b*2 c=b/2 Loop
- 下列循环语句中,循环次数最少的是______。 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的值是 A: 7 B: 39 C: 42 D: 1