Write a python program to determine whether a person is eligible to vote.

                                      Write a python program to determine whether a person is eligible to vote.

Write a python program to determine whether a person is eligible to vote.


PROGRAM:

age=int(input("Enter your age:"))
if (age>=18):
    print("You are eligible to vote.")
else:
    print("Sorry! You are not eligible to vote.")

OUTPUT:

No comments:

Post a Comment




Copyright Ⓒ 2022 | Mechpedia | All Right Reserved.