write algorithm to check whether a non zero number is positive or negative
Answers
Answered by
4
Answer:
QBASIC:
INPUT "NUMBER ", A
IF A > 0 THEN PRINT A; "IS A POSITIVE NUMBER"
IF A < 0 THEN PRINT A; "IS A NEGATIVE NUMBER"
Hope it helps
Similar questions