Write a program to determine whether

1. Write a program to determine whether a person is eligible (18 years old) to vote or not. If not eligible, display how many years are left to be eligible. (use if – else) Sample Run 1 Enter the age : 10 You have to wait for another 8 years to cast your vote Sample Run 2 Enter the age : 25 You are eligible to cast your vote

Tags: No tags