TA贡献1836条经验 获得超5个赞
Private Sub Command1_Click()Dim a As Integer, b As Integer, s As Integers = Max(a, b)MsgBox ("较大的一个数是:" & s)End Sub'自定义函数Private Sub Max(a As Integer, b As Integer)If a >= b ThenMax = aElseMax = bEnd IfEnd Sub
举报