Search This Blog

Monday, October 14, 2019

10. To Display Odd or Even

CLS
INPUT "Enter a number: ", N
IF N MOD 2 = 0 THEN
PRINT "The number is EVEN."
ELSE
PRINT "The number is ODD."
END IF
END

No comments:

Post a Comment