AssiGnMent oF daShAin & tiHar vacAtiOn.
10) Display odd or even.
=> CLS
INPUT "Enter any number";N
IF N MOD 2=0 THEN
PRINT "The number is odd"
ELSE
PRINT "The number is even"
END IF
END
=> CLS
INPUT "Enter any number";N
IF N MOD 2=0 THEN
PRINT "The number is odd"
ELSE
PRINT "The number is even"
END IF
END
Comments
Post a Comment