Write a program in QBASIC to check a number is positive number or negative number
Answers
Answered by
4
Answer:
DECLARE SUB CHECK(N)
CLS
INPUT"ENTER ANY NO.";N
CALL CHECK(N)
END
SUB CHECK(N)
IF N>0 THEN
PRINT"NUMBER IS POSITIVE"
ELSE IF N<0 THEN
PRINT"NUMBER IS NEGATIVE"
ELSE
PRINT"NUMBER IS NEUTRAL"
END IF
END SUB
Similar questions
Math,
5 months ago
Social Sciences,
5 months ago
Biology,
10 months ago
English,
10 months ago
Psychology,
1 year ago