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.
 
 
 
 
 
 

13 lines
252 B

  1. 10 REM compute the sum of numbers with FOR loop.
  2. 20 CALL SHELL("cls")
  3. 30 FOR N=0.5 TO 10.1 STEP 0.75
  4. 40 LET S = S + N
  5. 50 PRINT N,S
  6. 70 NEXT N
  7. 80 PRINT
  8. : REM print empty line
  9. 90 PRINT "Final sum:";S
  10. 95 PRINT
  11. 100 END