题目:中国有句老话叫“三天打鱼,两天晒网”。假设有一个人从 2000 年 1 月 1 日开始“三天打鱼两天晒网”,读入三个整数,分别表示年份、月份、日期,问这三个整数所表示的那天这个人在打鱼还是在晒网?
我的思路是这样的:
1、输入三个整数
package com.thz.hstc;
import java.util.Scanner;
/*
* @author NanTang
*
*/
public class FishOrPlay {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.print("请输入年份(>=2000):"); // 年份
int year = sc.nextInt();
System.out.print("请输入月份:"); // 月份
int month = sc.