vb 选择结构
答案:2 悬赏:40
解决时间 2021-02-12 16:07
- 提问者网友:血樱陌殇
- 2021-02-11 21:24
vb 选择结构
最佳答案
- 二级知识专家网友:风格单纯
- 2021-02-11 21:33
通常叫做缩进格式!!!
If <条件1> Then
If <条件2> Then
.....
Else
......
End if
Else
If <条件2> Then
.....
Else
......
End if
End If
If <条件1> Then
If <条件2> Then
.....
Else
......
End if
Else
If <条件2> Then
.....
Else
......
End if
End If
全部回答
- 1楼网友:输掉的尊严
- 2021-02-11 22:52
private sub command1_click()
dim score as single
score = val(text1)
if score >=0 and score <60 then
msgbox "不及格"
elseif score < 80 then
msgbox "及格"
elseif score <90 then
msgbox "良好"
elseif score <= 100 then
msgbox "优秀"
else
msgbox "请输入0到100的正确成绩!"
end if
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯