Appears on
Assembled by Tim Ward from many sources. Contains programs 10051 – 10121.
Source Code
5 REM %M%A%T%H% %F%L%A%S%H%E%R% %2% %S%U%B%T 10 PRINT "SUBTRACTION" 20 FOR L=1 TO 11 30 PRINT "*"; 40 NEXT L 50 PRINT 60 PRINT 100 LET P=INT (10*RND) 110 LET Q=INT (10*RND) 120 IF P-Q<0 THEN GOTO 100 200 PRINT "SUBTRACT ";Q;" FROM ";P 210 INPUT R 220 CLS 300 IF R=P-Q THEN GOTO 400 310 PRINT "%W%R%O%N%G" 320 GOTO 410 400 PRINT "%C%O%R%R%E%C%T" 410 PRINT P;" MINUS ";Q;" = ";P-Q 500 PRINT 510 PRINT 520 GOTO 10 600 SAVE "1005%9" 700 RUN