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

时间:2024-04-22 09:43:05

相似题目