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.
 
 
 
 
 
 

34 lines
459 B

  1. REM Purpose: Verify integer divide, X \ Y
  2. REM Author: Howard Wulf, AF5NE
  3. REM Date: 2015-02-21
  4. REM
  5. READ X, Y, Z
  6. DO
  7. LET N = X \ Y
  8. PRINT X,Y,Z,N
  9. IF Z <> N THEN
  10. PRINT "*** TEST FAILED ***"
  11. STOP
  12. END IF
  13. READ X, Y, Z
  14. LOOP UNTIL X = 999
  15. GOTO 999
  16. REM TEST DATA
  17. REM X,Y,Z
  18. DATA 1,1,1
  19. DATA 2,1,2
  20. DATA 3,1,3
  21. DATA 9,3,3
  22. DATA 1.0,1.5,0
  23. DATA 1.5,1.5,1
  24. DATA 1.5,1.0,2
  25. DATA 10,3,3
  26. DATA 1.4,1.3,1
  27. DATA 1.3,1.4,1
  28. DATA 999,999,999
  29. 999 END