elseif.bas
来自「这是一个简易的basic语言解释器, 可供我们学习和改进.」· BAS 代码 · 共 27 行
BAS
27 行
rem -----------------------------------------------------rem elseif.bas -- Test MultiLine IF-ELSEIF-THEN statementrem -----------------------------------------------------Print "ELSEIF.BAS -- Test MultiLine IF-THEN-ELSE Constructions"PrintPrint "The program should detect if the number you enter is 4 or 5 or 6."Input "Please enter a number, 1-9"; xIf x = 4 then Print "The number is 4."Elseif x = 5 then Print "The number is 5."Elseif x = 6 then Print "The number is 6."Else Print "The number is neither 4 nor 5 nor 6."End IfPrint "This concludes our test."
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?