INICIO:
CLS
PRINT
COLOR 12
PRINT "JUEGO DE MATEMATICAS"
PRINT
PRINT
PRINT "1.- JUGAR"
PRINT "2.- SALIR"
PRINT
INPUT "ELIGE ", EL1
ON EL1 GOTO JUGAR, FIN

JUGAR:
CLS
S1 = INT(RND * 10)
S2 = INT(RND * 10)
COL = INT(RND * 70) + 10
DO UNTIL X = 20
X = X + 1
LOCATE X, COL: PRINT S1; " + "; S2; " = "
FOR R = 1 TO 50000: NEXT
IF KEY$ = S1$ + S2$ THEN MB = MB + 1:  ELSE MM = MM + 1: GOTO JUGAR
IF MM = 20 THEN LOCATE 50, 5: PRINT "GAME OVER": GOTO INICIO
LOOP
INPUT


































FIN:

