【按键精灵8】按键精灵8判断语句Ifj=0thenjym=12ElseIfj=1thenjym=4elseIfj=2...

发布时间:2021-03-21 09:20:51

按键精灵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这样的语句对吗,如有错请改正 数学

网友回答

【答案】 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
以上问题属网友观点,不代表本站立场,仅供参考!