⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 elseif.bas

📁 umon bootloader source code, support mips cpu.
💻 BAS
字号:

rem -----------------------------------------------------
rem elseif.bas -- Test MultiLine IF-ELSEIF-THEN statement
rem -----------------------------------------------------

Print "ELSEIF.BAS -- Test MultiLine IF-THEN-ELSE Constructions"

Print
Print "The program should detect if the number you enter is 4 or 5 or 6."
Input "Please enter a number, 1-9"; x

If 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 If

Print "This concludes our test."

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -