vb中比较3数的大小的编程,要用IF语句
答案:2 悬赏:0 手机版
解决时间 2021-01-30 21:26
- 提问者网友:聂風
- 2021-01-30 11:45
vb中比较3数的大小的编程,要用IF语句
最佳答案
- 五星知识达人网友:十年萤火照君眠
- 2021-01-30 12:05
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
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
全部回答
- 1楼网友:你可爱的野爹
- 2021-01-30 12:26
private sub command_1click()
dim a!,b!c!,w!
a=val(text1)
b=val(text2)
c=val(text3)
if a
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯