import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan=new Scanner(System.in); while(scan.hasNext()){ int a=scan.nextInt(); if((a%4==0&&a%100!=0)||a%400==0){ System.out.println("Leap Year"); }else{ System.out.println("Not Leap Year"); } } } } |
Double click to view unformatted code.