vb中比较3数的大小的编程,要用IF语句
1个回答
2014-12-14
展开全部
Private Sub Command1_Click()
Dim a As Double, b As Double, c As Double, d As Double
a = Val(InputBox("a="))
b = Val(InputBox("b="))
c = Val(InputBox("c="))
If a > b Then d = a: a = b: b = d
If b > c Then d = b: b = c: c = d
If a > b Then d = a: a = b: b = d
Print a; "<"; b; "<"; c
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询