Qbasic

Qbasic to display the given number is positive or negative or zero

CLS
INPUT "Enter any 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

Comments

Popular posts from this blog

Qbasic