program in Qbasic to accept the name and age of a person. If the age is above 18 display the message Eligible for voting otherwise display try next time also display the name.
Answers
Answered by
0
INPUT "Enter name: "; NAME$
INPUT "Enter age: "; AGE
IF AGE >= 18 THEN
PRINT "Congrats, "; NAME; ", you're eligible for voting!"
ELSE
PRINT "Sorry, "; NAME; ", try next time!"
END IF
Similar questions
Hindi,
2 days ago
CBSE BOARD XII,
2 days ago
Physics,
2 days ago
Geography,
8 months ago
Biology,
8 months ago