December 30, 2016

Qbasic program to check the entered number is EVEN or ODD.

CLS
INPUT "Enter a number: ", N
IF N MOD 2 = 0 THEN
PRINT "The number is EVEN."
ELSE
PRINT "The number is ODD."
END IF
END

1 comment:

  1. Thank you I have 1more QBASIC question- program to accept a character from the user and check whether is a vowel or constant

    ReplyDelete

Note: Only a member of this blog may post a comment.