填空题
在窗体上画一个命令按钮,其名称为Commandl,然后编写如下程序:
Function a(x As Integer, y As Integer) As Integer
a = IIf(x > y, x, y)
End Function
Private Sub Command1_Click()
Dim n As Integer, m As Integer
n = 10
m = 20
Print a(n, m)
End Sub
程序运行后,单击命令按钮,输出结果是
1
。
【正确答案】
【答案解析】
20
提交答案
关闭