For i = 1 To 3 For j = 0 To i-1 s = s + s * j Next j ? s;
11、
Next i
阅读下列程序段: m = 0
For i = 1 To 3 For j = 1 To i
m = m + j Next j, i
执行以上的循环后,i和m的值分别为 。
运行下列程序段,其中“n=n+1”语句被执行的次数是。 Dim m%, n% For m = 1 To 3 For n = 1 To 6 Step 2 n = n + 1 Print n Next n
13、
Next m
窗体上有一个命令按钮Command1,编写如下事件过程: Private Sub Command1_Click() Sum = 0
For m = 1 To 3 Select Case m Case 1 a = 1 Case 2 a = 2 Case 3 a = 3 End Select Print a, Sum = Sum + a Next m Print Sum
End Sub
运行时,单击按钮,输出结果是 。
14、
窗体上有一个命令按钮Command1,编写如下事件过程: Private Sub Command1_Click() a = 80: b = 50: c = 30
If a < b Or b > c Then b = c
If b = c And a < c Then a = a - 30
12、