import java.util.*; public class ee{ public static void main(String[]agrs){ Scanner sc=new Scanner (System.in); int year; System.out.println("请输入一个年份:"); year=sc.nextInt(); if((year/4==0&&year/100!=0)||(year/400==0)){ System.out.println("是闰年:"); }else{ System.out.println("是平年:"); } } }
点赞 评论

相关推荐

点赞 评论 收藏
分享
喜欢疯狂星期四的猫头鹰在研究求职打法:短作业优先
点赞 评论 收藏
分享
牛客网
牛客企业服务