Day dreamer
Saturday, November 2, 2019
#24 CHECK WETHER THE GIVEN NUMBER IS POSITIVE OR NEGATIVE
DECLARE SUB CHECK(N)
CLS
INPUT"ENTER ANY NO.";N
CALL CHECK(N$)
END
SUB CHECK(N)
IF N > 0 THEN
PRINT"POSITIVE NO."
ELSE IF N < 0 THEN
PRINT"NEGATIVE NO."
ELSE
PRINT"ZERO"
END IF
END SUB
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment