一个窗体单击事件过程如下: Private Sub Form_Click() Dim a As Integer, b As Integer, c As Integer a = 6 : b = 15 c = a * b If a > b Then a = a - b Else b = b - a End If Print a, b, c / bEnd Sub试问:当单击窗体后,输出为___________。
下列程序段If (2 * 2 = 5) < (2 * 2 = 4) Then:Print "True is greater than false":Else:Print "False is greater than true"的运行结果是( )。
Private Sub Form_Click() 单击窗体,窗体上将会打印出:For i = 1 To 5 Print Tab(8 - i); String(i, Format(i));Next i End Sub
一个窗体单击事件过程如下: Private Sub Form_Click() X = Val(Text1.Text):Y = Val(Text2.Text) If X = 0 Or Y = 0 Then Print "不在任何象限内": Exit Sub If X > 0 And Y > 0 Then Print "IN A" If X > 0 And Y < 0 Then Print "IN D" If X < 0 And Y > 0 Then Print "IN B" If X < 0 And Y < 0 Then Print "IN C"End Sub