下列程序段的执行结果为()。i = 4: a = 5Do i = i + 1 a = a + 3Loop Until i >= 9Print i; a
举一反三
- 下面程序段的执行结果为。 i=4 a=5 Do i=i+1 a=a+3 Loop Until i>=9 Print"i=";i ;"a=";a
- 下列程序段的执行结果为 i=9 x=5 Do i=i + 1 x=x + 2 Loop Until i>=7 Print "i=":i Print "x=":X A.i=4x=5 B.i=7x=15 C.i=6x=8 D.i=10x=7
- 下列循环能正常结束循环的是( )。 A: i=5 Do i=i+1 Loop Until i<0 B: i=1 Do i=i+2 Loop Until i=10 C: i=10 Do i=i+1 Loop Until I>0 D: i=6 Do i=i-2 Loop Until I=1
- 有如下程序段:s = 0For i = 1 To 10 s = s + iNext iPrint s与上述程序段输出结果相同的程序段为( )。 A: s = 0: i = 0 While i <= 10 i = i + 1 s = s + i Wend Print s B: s = 0: i = 1 While i < 10 i = i + 1 s = s + i Wend Print s C: s = 0: i = 1 Do s = s + i i = i + 1 Loop While i < 10 Print s D: s = 0: i = 1 Do s = s + i i = i + 1 Loop Until i > 10 Print s
- 下列VBA程序段的执行结果为 。 I = 1 Do While I<=10 SUM = SUM + I I = I + 1 Loop Debug.Print SUM