10 CLP:L=5:W=1:S=0:VIDEO3:POKE#7F8,0,16,0,124,0,16,0,0:CLT 11 Z=RND(4):CLS: 12 IF Z=L GOTO 11 ELSE L=Z 15 LC8,0:? W;"/10" 20 X=RND(100):Y=RND(10):W=W+1 30 IF (Z=1||Z=3)&&X<Y||Z=3&&Y=0 GOTO 20 40 IF Z=0 Q=X+Y:? X;"+";Y;"=?" 50 IF Z=1 Q=X-Y:? X;"-";Y;"=?" 60 IF Z=2 Q=X*Y:? X;"X";Y;"=?" ELSE IF Z=3 Q=X/Y:?X;CHR$(~0);Y;"=?" 70 INPUT"",A:IF Q=A ?"Correct answer!":S=S+10:PLAY"O4E8O4C4":LED1:WAIT20:LED0:WAIT100 ELSE ?"Incorrect answer":?"The correct answer is ";Q:PLAY"O2C16O2C4":WAIT120 75 IF Q=A&&Z=3 S=S-5:GSB90 80 IF W>10 VIDEO1:?"Result:";S;"point":?"Your time:";TICK()/60;"s":?"Overall score:";S-TICK()/60:END ELSE GOTO11 90 Q=X%Y:INPUT"remainder?",R:IF Q=R ?"Correct answer!":S=S+5:PLAY"O4E8O4C4":LED1:WAIT20:LED0:WAIT100:RTN ELSE ?"Incorrect answer":?"The answer is ";Q:PLAY"O2C16O2C4":WAIT120:RTN