摘要: import java.util.Scanner;public classrili { public static void main(String[] args) { Scanner input=new Scanner(System.in); int year; int month; int days=0; int sum=0; int sum1=0; int sum2=0; String s; do { //输入年份和月份并判断是否合法; do { System.out.println("请输入年份:"); year=input.nextInt(... 阅读全文