Thursday, 3 October 2019

QBasic programming 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

Internet of Things (IoT)

  IoT is the technology or platform that connects any device into network and helps human beings to make their work amazingly faster and eas...