import java.util.*;
public class t5{
public static void main(String[] args){
Scanner in=new Scanner(System.in);
System.out.println("input a year");
int year=in.nextInt();
if(year%4==0&&year%100!==0||year%400==0){
System.out.println(year+"yes");
}else{
System.out.println(year+"no");
}
}
}
java 闰年
最新推荐文章于 2024-03-25 11:54:43 发布