Tuesday, October 29, 2019

QBASIC to display Positive, 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

No comments:

Post a Comment

  DASHAIN Dashain , also  Bijaya Dashami ) is a festival originating from  Nepal . In parts of India, it is called  Dashera .  Dashera. Dash...