您所在的当前位置: 计算机等级考试题库   >  
BASIC题库  
  >   [填空题] 在窗体上面画一个命令按钮,然后编写如下程序: Function M(x As Integer, y As Integer) As Integer M = IIf(x>y, x, y) End Function Private Sub Command1_Click() Dim a As Integer, b As Integer a = 2 b = 5 Print M(a, b) End Sub 程序运行后,单击命令按钮,输出结果为 【5】 。
问题:
发布时间:2022-07-01

[填空题] 在窗体上面画一个命令按钮,然后编写如下程序:
Function M(x As Integer, y As Integer) As Integer
M = IIf(x>y, x, y)
End Function
Private Sub Command1_Click()
Dim a As Integer, b As Integer
a = 2
b = 5
Print M(a, b)
End Sub
程序运行后,单击命令按钮,输出结果为 【5】

可能感兴趣的题目: