└── leap year /leap year: -------------------------------------------------------------------------------- 1 | import java.io.*; 2 | import java.util.*; 3 | 4 | public class Solution { 5 | 6 | public static void main(String[] args) { 7 | /* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. */ 8 | Scanner sc=new Scanner(System.in); 9 | int n=sc.nextInt(); 10 | if(((n%100==0) && (n%400==0) && (n%4==0)) || ((n%4==0) && (n%100!=0))) 11 | System.out.println("The Given Year "+n+" is a Leap Year."); 12 | else 13 | System.out.println("The Given Year "+n+" is Not a Leap Year."); 14 | } 15 | } 16 | --------------------------------------------------------------------------------