Check whether the no. is positive or negative

DECLARE SUB CHECK (N)
CLS
INPUT"ENTER ANY NUMBER";N
CALL CHECK(N)
END

SUB CHECK(N)
IF N >0 THEN
PRINT"THE GIVEN NO. IS POSITIVE"
ELSEIF N< 0 THEN
PRINT"THE GIVEN NUMBER IS NEGATIVE"
END IF
END SUB

Comments

Popular posts from this blog

My experience in jagat mandir school

PERFECT SQR OR NOT

Picnic experience