Qbasic to display to odd or even

Qbasic to display to odd or even

CLS
INPUT "Enter any number"; N

IF N MOD 2 = 0 THEN
PRINT "The number is even"

ELSE
PRINT "The number is odd"

END IF
END

Comments

Popular Posts