--- title: "Math Drill M" id: 80612 type: "computer_media" slug: "math-drill-m" url: "http://localhost/computer_media/math-drill-m/" markdown_url: "http://localhost/computer_media/math-drill-m.md" published_at: "2026-11-26T10:48:19+00:00" modified_at: "2026-11-26T10:48:19+00:00" featured_image: url: "http://localhost/wp-content/uploads/2026/11/math-drill-m-1.png" excerpt: "A multiplication drill for the 1K ZX81 and the TS2068." post_tag: - name: "Downloadable" slug: "downloadable" taxonomy: "post_tag" url: "http://localhost/tag/downloadable/" model: - name: "Sinclair ZX81" slug: "zx81" taxonomy: "model" url: "http://localhost/model/zx81/" - name: "Timex/Sinclair 1000" slug: "ts-1000" taxonomy: "model" url: "http://localhost/model/ts-1000/" - name: "Timex/Sinclair 2068" slug: "ts-2068" taxonomy: "model" url: "http://localhost/model/ts-2068/" indiv: - name: "Rod Gowen" slug: "rod-gowen" taxonomy: "indiv" url: "http://localhost/indiv/rod-gowen/" genre: - name: "Education" slug: "education" taxonomy: "genre" url: "http://localhost/type/education/" media_type: "Program" programmers: - name: "Rod Gowen" slug: "rod-gowen" taxonomy: "indiv" url: "http://localhost/indiv/rod-gowen/" download_url: "https://archive.org/download/timex-sinclair-software-archive/Math%20Drill%20M%20%281983%29%28Gowen%2C%20Rod%29%28TS1000%29%28US%29%28Program%29.zip" tsrun_member: "Math Drill M (1983)(Gowen, Rod)(TS1000)(US)(Program)/Math Drill M (1983)(Gowen, Rod)(TS1000)(US)(Program) (TS2068).tap" mediadate: "1983" images: - url: "http://localhost/wp-content/uploads/2026/11/math-drill-m-1.png" - url: "http://localhost/wp-content/uploads/2026/11/math-drill-m-2.png" - url: "http://localhost/wp-content/uploads/2026/11/math-drill-m-3.png" - url: "http://localhost/wp-content/uploads/2026/11/math-drill-m-4.png" article_media: - id: 45294 title: "ZX/TS P and R: Auto-run Programs, Math Drill" type: "article" url: "http://localhost/article/zx-ts-p-and-r-auto-run-programs-math-drill/" - id: 45535 title: "Old Programs" type: "article" url: "http://localhost/article/old-programs/" media_type_tags: "Education" license: false --- # Math Drill M A multiplication drill. It shows a problem such as 9 TIMES 16 and waits for the answer. A right answer gets GREAT ***** SUPER and a new problem; a wrong one gets NOPE, SORRY, TRY AGAIN and the same problem again. Each answer stays on screen for a few seconds. Rod Gowen wrote it, with Math Drill A and S, as one of his first programs after reading the ZX81 manual, to help his daughters with their maths, and it fits a 1K ZX81. The zip has the 1983 ZX81 version (with SLOW in line 6) and the 1991 reprint for the TS2068, which drops SLOW, adds two REM lines and draws the first number from 1 to 22 instead of 1 to 20. Both are as printed. Published in The Plotter November 1983 ([ZX/TS P and R: Auto-run Programs, Math Drill](https://timexsinclair.com/article/zx-ts-p-and-r-auto-run-programs-math-drill/)), and printed again in August 1991 ([Old Programs](https://timexsinclair.com/article/old-programs/)). ## Source Code ``` 5 REM "MATH DRILL M" 6 SLOW 7 PRINT "MULTIPICATION DRILL" 8 PRINT 10 LET X=INT (RND*20)+1 20 LET Y=INT (RND*20)+1 40 PRINT AT 10,0;X;" TIMES ";Y;;"=",;"ANSWER?" 70 INPUT Z 80 PRINT AT 10,15;,Z;" " 82 PAUSE 200 85 CLS 90 IF Z=X*Y THEN PRINT AT 5,0;"GREAT ***** SUPER";,,,;"NEXT?" 95 IF Z=X*Y THEN GOTO 10 110 IF Z<>X*Y THEN PRINT AT 5,0;"NOPE, SORRY,",,,, "TRY AGAIN" 115 PRINT 120 IF Z<>X*Y THEN GOTO 40 130 CLS ```