在窗体上画一个命令按钮,其名称为Commandl,然后编写如下程序: Function a(x As Integer, y As Integer) As Integer a = IIf(x > y, x, y) End Function Private S

admin2009-07-23  24

问题 在窗体上画一个命令按钮,其名称为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
程序运行后,单击命令按钮,输出结果是______。

选项

答案20

解析
转载请注明原文地址:https://jikaoti.com/ti/uAq0FFFM
0

最新回复(0)