Find the matching END IF
for the
IF
that starts the statement:
IF COUNT < LIMIT / 2 THEN
PRINT "Enter the number of repeats" INPUT LIMIT IF LIMIT < 0 THEN PRINT "Number must be zero or greater" ELSE LET COUNT=1 DO WHILE COUNT <= LIMIT | IF COUNT < LIMIT / 2 THEN | PRINT "Hello" | ELSE | PRINT "Mars" | END IF LOOP PRINT "Done" END IF END
The inside-IF
and the inside-END IF
are correctly matched.
Now find the matching LOOP for the DO.