- class Leapyear
- {
- public static void main(String[] args)
- {
- int n=2000;
- if (n%4==0){
- System.out.println("The given year is a leap year");
- }
- else{
- System.out.println("This is not a leap year");
- }
- }
- }
In this code, I am going to explain about the Leap year Program in JAVA.
