帮忙实现个简单的VB程序

来源:百度知道 编辑:UC知道 时间:2024/05/06 20:00:59
通过键盘输入3个数 单击按钮 选出其中最大的数 在窗体中的标签里显示

Function Maximum(a As Integer,b As Integer,c As Integer) As Integer
Dim tmp As Integer
tmp=a
If tmp<b Then tmp=b
If tmp<c Then tmp=c
Maximum=tmp
End Function
可以适当地改变数据类型,至于其他的显示我就不干了,很简单的