Computer Science, asked by anitaearth, 2 months ago

Accept a number and determine positive or negative.Also check for zero .QB64 program

Answers

Answered by nightread
5

Answer:

INPUT "NUMBER ", A

IF A > 0 THEN PRINT A; "IS A POSITIVE NUMBER"

IF A < 0 THEN PRINT A; "IS A NEGATIVE NUMBER"

IF A = 0 THEN PRINT A; "IS NEITHER POSITIVE NOR NEGATIVE"

Hope it helps

Similar questions