Program for check given year is leap or not.


public class LeapYear{

public static void main(String args[]){

int year=2017;

if(year%4==0)

{

System.out.println(year+"is leap year");

}

else

{

System.out.println(year+" is not a leap year");

}

}

}

Comments