public class zy1 {public static void main(String[] args) {Scanner scanner=new Scanner(System.in);int year=Integer.parseInt(scanner.next());if(year%4==0){System.out.println("闰年");}else {System.out.println("不是闰年");}}}
如果觉得《1 输入年份 判断是否是闰年?》对你有帮助,请点赞、收藏,并留下你的观点哦!