import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner=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"); } } } /* Main.java:21: error: reached end of file while parsing } ^ 1 error */ |
Double click to view unformatted code.