' DO-4.BAS
' This program demonstrates a DO UNTIL loop.  Notice
'   that the condition is at the bottom of the loop.

CLS

INPUT "Please enter a number between 1 and 10:  ", userNum%
PRINT

DO
    COLOR userNum%
    PRINT "The value of userNum% is"; userNum%
    userNum% = userNum% + 1   ' increment userNum% by 1
LOOP UNTIL userNum% > 10

