注意:此页面搜索的是所有试题
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 + 5
Exit For
Else
k = k + 1
End If
Next j
Print c, k
End Sub
程序运行后,单击窗体,在窗体上显示的c,k的值分别是( )。
A、7 3 B、7 4
C、2 4 D、7 5
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 + 5
Exit For
Else
k = k + 1
End If
Next j
Print c, k
End Sub
程序运行后,单击窗体,在窗体上显示的c,k的值分别是( )。
A、7 3 B、7 4
C、2 4 D、7 5
参考答案