WAP to find whether the number is 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