ChipMaster's bwBASIC This also includes history going back to v2.10. *WARN* some binary files might have been corrupted by CRLF.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

27 lines
592 B

  1. rem -----------------------------------------------------
  2. rem elseif.bas -- Test MultiLine IF-ELSEIF-THEN statement
  3. rem -----------------------------------------------------
  4. Print "ELSEIF.BAS -- Test MultiLine IF-THEN-ELSE Constructions"
  5. Print
  6. Print "The program should detect if the number you enter is 4 or 5 or 6."
  7. Input "Please enter a number, 1-9"; x
  8. If x = 4 then
  9. Print "The number is 4."
  10. Elseif x = 5 then
  11. Print "The number is 5."
  12. Elseif x = 6 then
  13. Print "The number is 6."
  14. Else
  15. Print "The number is neither 4 nor 5 nor 6."
  16. End If
  17. Print "This concludes our test."