Find the matching END IF for the IF that starts the statement:

    IF COUNT < LIMIT / 2 THEN

Answer:

    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

Matching the DO

The inside-IF and the inside-END IF are correctly matched.

QUESTION 23:

Now find the matching LOOP for the DO.