public class 闰年 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.print("请输入年份:");
int a = sc.nextInt();
if (a % 4 == 0 && a % 100 != 0) {
System.out.println("该年是闰年");
} else {
System.out.println("该年不是闰年");
}
}
}