Code is copied!
         
    
Program to input age of a person and check whether the person is eligible to vote or not JAVA
Write a Program to input age of a person and check whether the person is eligible to vote or not.
 
 
                 
import java.util.*;
class oldest
{
    public static void main(String args[])
    {
         Scanner sc = new Scanner(System.in);
         int a = sc.nextInt();
         int b = sc.nextInt();
         int c = sc.nextInt();
         if(a>b && a>c)
     
         System.out.println(+a + " is oldest");
         
         else if(b>a && b>c)
     
         System.out.println(+b + " is oldest");
         
         else
         
         System.out.println(+c + " is oldest");
         
    }
}
     
                     
             