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.
 
 
 
 
 
 

14 lines
343 B

  1. 10 REM FORNEXT.BAS -- Test FOR-NEXT Statements
  2. 20 REM
  3. 30 PRINT "FORNEXT.BAS: Test FOR-NEXT Statements"
  4. 40 PRINT "A FOR-NEXT Loop with STEP statement:"
  5. 50 FOR i=1 to 30 step 2
  6. 60 PRINT "FOR: i is ";i
  7. 70 NEXT i
  8. 80 REM
  9. 90 PRINT "A FOR-NEXT Loop without STEP statement:"
  10. 100 FOR i = 2 to 7
  11. 110 PRINT "FOR: i is ";i
  12. 120 NEXT i
  13. 130 END