Write a program to input the age of a person and print whether he/she is eligible to vote or not.
Decision Making
1 2 3 4 5 6 7 8 9 10 |
public class Eligibility { public static void main(int n) { if(n>=18) System.out.println("Yes you are eligible"); else System.out.println("No you are not eligible"); } } |
Leave a Reply
You must be logged in to post a comment.