Wednesday, October 2, 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

Digital Footprint

Computer technology is a technology that instead of building a physical machine for each application builds a logical or virtual machine. ...