Display 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
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
Post a Comment