Skip to content

Instantly share code, notes, and snippets.

@mit41301
Created March 3, 2026 05:07
Show Gist options
  • Select an option

  • Save mit41301/54579e7b2e3b1769a3c70ba0594dc82d to your computer and use it in GitHub Desktop.

Select an option

Save mit41301/54579e7b2e3b1769a3c70ba0594dc82d to your computer and use it in GitHub Desktop.
Multiplication Timed Quiz using BASIC-52
10 PRINT "MULTIPLICATION TEST, YOU HAVE 5 SECONDS"
20 FOR I=2 TO 9
30 N=INT(RND*10) : A=N*I
40 PRINT "WHAT IS ",N,"*",I,"?" : CLOCK 1
50 TIME=0 : ONTIME 5,200 : INPUT R : IF R<>A THEN 100
60 PRINT "THAT'S RIGHT" : TIME=0 : NEXT I
70 PRINT "YOU DID IT, GOOD JOB" : END
100 PRINT "WRONG, TRY AGAIN" : GOTO 50
200 REM WASTE CONTROL STACK, TOO MUCH TIME
210 CLEAR S : PRINT "YOU TOOK TOO LONG" : GOTO 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment