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.
 
 
 
 
 
 

29 lines
819 B

  1. 10 FOR I = 1 TO 3
  2. 20 READ P(I)
  3. 30 NEXT I
  4. 40 FOR I = 1 TO 3
  5. 50 FOR J = 1 TO 5
  6. 60 READ S(I,J)
  7. 70 NEXT J
  8. 80 NEXT I
  9. 90 FOR J = 1 TO 5
  10. 100 LET S = 0
  11. 110 FOR I = 1 TO 3
  12. 120 LET S = S + P(I) * S(I,J)
  13. 130 NEXT I
  14. 140 PRINT "TOTAL SALES FOR SALESMAN"J,"$" S
  15. 150 NEXT J
  16. 900 DATA 1.25, 4.30, 2.50
  17. 910 DATA 40, 20, 37, 29, 42
  18. 920 DATA 10, 16, 3, 21, 8
  19. 930 DATA 35, 47, 29, 16, 33
  20. 999 END
  21. 9900 REM ------------------------------------------------------------------------
  22. 9910 REM Purpose: SALES1 example
  23. 9920 REM Author: General Electric
  24. 9930 REM Date: 1965-12-17
  25. 9940 REM Note: OPTION VERSION MARK-I
  26. 9950 REM Origin: 202026A_BASIC_Language_Reference_Manual_Jan1967.pdf
  27. 9960 REM Page: 12
  28. 9970 REM ------------------------------------------------------------------------