WAP to find whether the number is positive or negative
CLS
INPUT"ENTER ANY NUMBER";N
IF N > 0 THEN
PRINT"THE NUMBER IS POSITIVE"
ELSE
PRINT"THE NUMBER IS NEGATIVE"
END IF
END
INPUT"ENTER ANY NUMBER";N
IF N > 0 THEN
PRINT"THE NUMBER IS POSITIVE"
ELSE
PRINT"THE NUMBER IS NEGATIVE"
END IF
END
Comments
Post a Comment