Thursday, 3 October 2019

QBasic programming to display odd or even number

CLS
INPUT  "Enter any number"; N
IF N MOD 2 = 0 THEN
PRINT "The  number is even"
ELSE
PRINT "The number is odd"
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...