public class LeapYear3{
  
  public static void main (String[] args)
  {
    int year;
    boolean b; //declare boolean variable

    System.out.println("Enter year");
    year=ITI1120.readInt();                  
   
    //call another method to compute the boolean value
    b = leapYear(year);
    
    System.out.println(year + " is leap year? "+ b);
  }
  
  public static boolean leapYear(int year)
  {
    boolean result;
    if ((year % 4 == 0 && year % 100 !=0)||(year % 400 == 0))
       result = true;
    else 
       result = false;
   
    return result;
  }
}