Computer Science, asked by ujjwaltiwary19, 7 months ago

write a program in q basic to accept age and nationality of the person. If age is 18 or more than 18 and nationality is "INDIAN" then print " Eligible to Vote" otherwise print "Not Eligible to vote".​

Answers

Answered by chauhandhani
4

Explanation:

CLS

INPUT "ENTER YOUR AGE";A

IF A>=18 THEN

PRINT "YOU ARE ELIGIBLE TO VOTE"

ELSE

PRINT "YOU ARE NOT ELIGIBLE TO VOTE"

END IF

END

Answered by Anonymous
1

Explanation:

To begin, write down everything from the program below ("PRINT "Hello World") into a text editor or into the QBasic IDE (Integrated Development Interface) itself and save it as "1HELLO. BAS". Next open the file in QBasic (unless you used QBasic IDE in which case it is already open) and press F5.

Similar questions