--- title: "Multiplication Exercise" id: 76535 type: "computer_media" slug: "multiplication-exercise" url: "http://localhost/computer_media/multiplication-exercise/" markdown_url: "http://localhost/computer_media/multiplication-exercise.md" published_at: "2026-11-11T08:02:27+00:00" modified_at: "2026-11-11T08:02:27+00:00" author: "David Anderson" featured_image: url: "http://localhost/wp-content/uploads/2026/11/multiplication-exercise-1.png" excerpt: "A multiplication drill for the ZX80: pick a multiplier and answer five problems, with two tries each and a score at the end." post_tag: - name: "Downloadable" slug: "downloadable" taxonomy: "post_tag" url: "http://localhost/tag/downloadable/" - name: "ZX80" slug: "zx80" taxonomy: "post_tag" url: "http://localhost/tag/zx80/" model: - name: "Sinclair ZX80" slug: "zx80" taxonomy: "model" url: "http://localhost/model/zx80/" indiv: - name: "Pete Cone" slug: "pete-cone" taxonomy: "indiv" url: "http://localhost/indiv/pete-cone/" genre: - name: "Education" slug: "education" taxonomy: "genre" url: "http://localhost/type/education/" media_type: "Program" programmers: - name: "Pete Cone" slug: "pete-cone" taxonomy: "indiv" url: "http://localhost/indiv/pete-cone/" download_url: "https://archive.org/download/timex-sinclair-software-archive/Multiplication%20Exercise%20%281980%29%28Cone%2C%20Pete%29%28ZX80%29%28US%29%28Program%29.zip" mediadate: "1980" images: - url: "http://localhost/wp-content/uploads/2026/11/multiplication-exercise-1.png" - url: "http://localhost/wp-content/uploads/2026/11/multiplication-exercise-2.png" article_media: - id: 19217 title: "Multiplication Exercise" type: "article" url: "http://localhost/article/multiplication-exercise/" media_type_tags: "Education" license: false --- # Multiplication Exercise A drill for children learning their tables. RUN asks for your name and a multiplier (up to 3276), then sets five problems that multiply it by a random number from 1 to 10. You get two tries at each; after a wrong second try the program shows the right answer. Press NEWLINE to go on to the next problem. At the end it rates the score (EXCELLENT, NOT BAD or BETTER TRY AGAIN), tells you how many you got right and offers another round. It fits in a 1K ZX80. Published in Syntax December 1980 ([Multiplication Exercise](https://timexsinclair.com/article/multiplication-exercise/)). ## Source Code ``` 10 PRINT "HI. WHAT IS YOUR NAME?" 20 INPUT A$ 30 CLS 40 PRINT "OK, ";A$;" ENTER MULTIPLIER." 50 INPUT A 60 LET B=0 70 DIM X(5) 80 FOR J=1 TO 5 90 LET C=RND(100) 100 IF C>10 THEN LET C=C/10 110 LET X(J-1)=C 120 GO SUB 500 130 INPUT E 140 FOR L=1 TO 2 150 PRINT E 160 PRINT "THAT IS "; 170 IF NOT E=A*C THEN PRINT "IN"; 180 PRINT "CORRECT" 190 IF E=A*C THEN GO TO 250 200 IF L=2 THEN GO TO 260 210 PRINT "PLEASE TRY AGAIN." 220 INPUT E 230 GO SUB 500 240 NEXT L 250 LET B=B+1 260 PRINT "PRESS (NEWLINE) TO CONTINUE" 270 INPUT B$ 280 NEXT J 285 LET J=J-1 290 GO SUB 500 300 PRINT A*X(4) 310 IF B>1 THEN GO TO 340 320 PRINT "BETTER TRY AGAIN, "; 330 GO TO 380 340 IF B<5 THEN GO TO 370 350 PRINT "EXCELLENT, "; 360 GO TO 380 370 PRINT "NOT BAD, "; 380 PRINT A$ 390 PRINT "YOU GOT ";B;" CORRECT." 400 INPUT B$ 410 CLS 420 PRINT "WANT TO TRY AGAIN?" 430 INPUT B$ 440 IF CODE(B$)=62 THEN GO TO 30 450 CLS 460 PRINT "OK, ";A$;". THANKS FOR" 470 PRINT "PLAYING WITH ME." 480 PRINT "SEE YOU NEXT TIME." 490 STOP 500 CLS 510 PRINT "MULTIPLY BY ";A 520 FOR K=1 TO J 530 PRINT X(K-1);" X ";A;" = "; 540 IF NOT K=J THEN PRINT X(K-1)*A 550 NEXT K 560 RETURN ```