Computer Science, asked by pritijais85, 4 days ago

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 shrihankp
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