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

User Icfantv
by
8.3k 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
8.2k points

Related questions

asked Feb 22, 2024 220k views
Dw asked Feb 22, 2024
by Dw
8.0k points
2 answers
0 votes
220k views
1 answer
0 votes
65.1k views