注意:此页面搜索的是所有试题
Private Sub Form_Click()
Dim i As Integer, k As Integer, c As Integer
For i = 1 To 5
If i Mod 2 = 0 Then
k = k + 2
Else
c = c + 3
End If
Next i
Print k, c
End Sub
程序运行后单击窗体,Form1上的输出结果是( )。
A、2 12 B、4 9
C、4 6 D、2 9
Dim i As Integer, k As Integer, c As Integer
For i = 1 To 5
If i Mod 2 = 0 Then
k = k + 2
Else
c = c + 3
End If
Next i
Print k, c
End Sub
程序运行后单击窗体,Form1上的输出结果是( )。
A、2 12 B、4 9
C、4 6 D、2 9
参考答案