Voting Eligibility
by CodeChum Admin
Write a program that takes a person's
age and citizenship status (citizen - 1 or
non-citizen - 0) as input and determines
whether they are eligible to vote based
on the following conditions:
• If the person is a citizen and 18
years or older, print "You are
eligible to vote".
• If the person is a non-citizen, print
"Only citizens are eligible
to vote".
• If the person is younger than 18,
print "You must be 18 years or
older to vote".