按键精灵8 判断语句If j=0 then jym=12 ElseIf j=1 then jym=4 elseIf j=2 then jym=5 elseIf j=3 then jym=453 elseIf j=4 then jym=5 elseIf j=5 then jym=6 elseIf j=6 then jym=7 elseIf j=7 then jym=8 elseIf j=8 then jym=4

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/02 17:33:48
按键精灵8 判断语句If j=0 then jym=12    ElseIf j=1 then jym=4    elseIf j=2 then jym=5    elseIf j=3 then jym=453    elseIf j=4 then jym=5    elseIf j=5 then jym=6    elseIf j=6 then jym=7    elseIf j=7 then jym=8    elseIf j=8 then jym=4

按键精灵8 判断语句If j=0 then jym=12 ElseIf j=1 then jym=4 elseIf j=2 then jym=5 elseIf j=3 then jym=453 elseIf j=4 then jym=5 elseIf j=5 then jym=6 elseIf j=6 then jym=7 elseIf j=7 then jym=8 elseIf j=8 then jym=4
按键精灵8 判断语句
If j=0 then jym=12
ElseIf j=1 then jym=4
elseIf j=2 then jym=5
elseIf j=3 then jym=453
elseIf j=4 then jym=5
elseIf j=5 then jym=6
elseIf j=6 then jym=7
elseIf j=7 then jym=8
elseIf j=8 then jym=4
elseIf j=9 then jym=3
elseIf j=10 then jym=2
End if
这样的语句对吗,如有错请改正

按键精灵8 判断语句If j=0 then jym=12 ElseIf j=1 then jym=4 elseIf j=2 then jym=5 elseIf j=3 then jym=453 elseIf j=4 then jym=5 elseIf j=5 then jym=6 elseIf j=6 then jym=7 elseIf j=7 then jym=8 elseIf j=8 then jym=4
If j=0 then :jym=12
elseIf j=1 then : jym=4
elseIf j=2 then :jym=5
elseIf j=3 then :jym=453
elseIf j=4 then :jym=5
elseIf j=5 then :jym=6
elseIf j=6 then :jym=7
elseIf j=7 then :jym=8
elseIf j=8 then :jym=4
elseIf j=9 then :jym=3
elseIf j=10 then :jym=2
End if
通常人们喜欢用下面这种 :
select case j
case 1
jym=4
case 2
jym=5
case 3
jym=453
case 4
jym=5
case 5
jym=6
case 6
jym=7
case 7
jym=8
case 8
jym=4
case 9
jym=3
case 10
jym=2
End Select