发布网友 发布时间:2022-04-24 10:10
共1个回答
热心网友 时间:2023-10-09 23:16
import java.util.Scanner;public class Runpublic static void main(String []args){ Scanner input=new Scanner(System.in); System.out.println("请输入年份:"); int year=input.nextInt(); if(year%4==0&&year%400!=0||(year%400==0)) { System.out.println(yrae+"年是润年");} else System.out.println(year+"年是平年");}