实现三个数大小的比较

来源:互联网 发布:开源 微信公众号 php 编辑:程序博客网 时间:2024/06/06 01:19

Private Sub Command1_Click()

 

Dim A As Integer

Dim B As Integer

Dim C As Integer

 

A = Text1.Text

B = Text2.Text

C = Text3.Text

 

If A > B Then

Max = A

Else: Max = B

End If

  IfC > Max Then

 Print C

 Else: Print Max

 EndIf

原创粉丝点击