注意:此页面搜索的是所有试题
Private Sub Form_Click()
Dim c As Integer, j As Integer, k As Integer
k = 1
c = 2
For j = 1 To 5
If j > 3 Then
c = c + 6
Exit For
Else
k = k + 3
End If
Next j
Print c, k
End Sub
程序运行后,单击窗体,在窗体上显示的值是( )。
A、10 8 B、8 10
C、8 7 D、8 4
Dim c As Integer, j As Integer, k As Integer
k = 1
c = 2
For j = 1 To 5
If j > 3 Then
c = c + 6
Exit For
Else
k = k + 3
End If
Next j
Print c, k
End Sub
程序运行后,单击窗体,在窗体上显示的值是( )。
A、10 8 B、8 10
C、8 7 D、8 4
参考答案