Java program to check Leap year or not

┬áJava program to check Leap year or not 1.┬áJava program to check Leap year or not using if-else statement: Program: import java.io.*; import java.util.*; class LeapYear { public static void main(String args[]) { Scanner sc=new Scanner(System.in); System.out.println(“Enter the year”); int yr=sc.nextInt(); if((yr%400==0)||(yr%100!=0 && yr%4==0)) { System.out.println(yr+ ” is a leap year”); } else { System.out.println(yr+” … Read more