Friday, October 4, 2019

Qbasic program to display positive, negative or zero.


Write a program 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

E-Commerce

E-Commerce (Electronic Commerce) E-Commerce or Electronic Commerce means buying and selling of goods, products, or services over the interne...