Computer Science, asked by Aswinipacha, 3 months ago

write algorithm to check whether a non zero number is positive or negative​

Answers

Answered by nightread
4

Answer:

QBASIC:

INPUT "NUMBER ", A

PRINT

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