下面的VBA程序段运行时,内层循环的循环次数是( )。 For a= 0 to 7 step 3 For b=a-1 to a+1 step 2 Next b Next a
A: 6
B: 7
C: 8
D: 5
A: 6
B: 7
C: 8
D: 5
举一反三
- 下列程序段中,循环体s = s +1执行了几次? For i = 0 To 7 Step 3 For j = 0 To 7 Step 2 s = s + 1 Next Next
- 以下程序段执行后,Label1.Text结果是________。Label1.Text=""For i = 7 To 1 Step -1 If i Mod 3 = 0 Then Exit For Label1.Text &= i & " "Next A: 7 6 B: 7 C: 7 5 4 2 1 D: 6 3
- 以下程序段执行后,Label1.Text结果是________。Label1.Text=""For i = 7 To 1 Step -1 If i Mod 3 = 0 Then Exit For Label1.Text &= i & " "Next A: 7 6 B: 7 C: 7 5 4 2 1 D: 6 3
- 以下程序段执行后,Label1.Text结果是________。Label1.Text=""For i = 7 To 1 Step -1 If i Mod 3 = 0 Then Exit For Label1.Text &= i & " "Next A: 7 6 B: 7 C: 7 5 4 2 1 D: 6 3
- 以下程序段执行后,Label1.Text结果是________。Label1.Text=""For i = 7 To 1 Step -1 If i Mod 3 = 0 Then Exit For Label1.Text &= i & " "Next A: 7 6 B: 7 C: 7 5 4 2 1 D: 6 3