Check Leap Year

in Hindi - Check Leap Year



not yet

Source Code :

RUNimport java.util.Scanner;

public class Leap
{
public static void main(String args[]){ 

int year;

System.out.println("Enter any year : ");
Scanner enter = new Scanner(System.in);
year = enter.nextInt();

if( ((year%4==0)&&(year%100!=0))||(year%400==0) ){
System.out.println(year + " is a leap year");
}
else{
System.out.println(year + "is not a leap year");
}

}
}