Program for Odd number using “do while” in QBASIC
CLS
PRINT "Odd Number between 20 to 50"
x = 21
DO WHILE x <= 49
    PRINT x
    x = x + 2
LOOP
END