Computer Science, asked by niloferkhatoon2, 1 month ago

Write a program that asks the user the age of a person. Display "eligible to vote" if age is more than 18.​

Answers

Answered by mj8303987
2

Answer:

it robably would be Qbasic language if you are a student

so I tried to explain in Qbasic language.

Explanation:

CLS

INPUT "enter your age"; age

IF age >= 18 THEN

  PRINT "you are eligible to vote";

ELSE IF age < 18 THEN

  PRINT "you are not eligible to vote";

ELSE

  PRINT "some error try again";

END IF

END

Similar questions