188k views
3 votes
Qbasic program to check whether an entered number is positive or negative or neutral​

User Icfantv
by
6.2k points

1 Answer

5 votes

Answer:

CLS

INPUT "Enter a number: ",N

IF N > 0 THEN

PRINT "The number is Positive."

ELSEIF N < 0 THEN

PRINT "The number is Negative."

ELSE

PRINT "The number is Zero."

END IF

END

User Ben Mares
by
5.4k points