...中怎么用循环实现:“输入某年某月某日,判断这一天是这一年的第几天...答:输入判断什么的就不做了 import java.util.Scanner; public class test2 { public static void main(String[] args) { Scanner s = new Scanner(System.in); int year, month, day; int allDay; int []days1 = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; int []...
题目1: 输入某年某月某日,判断这一天是这一年的第几天? 求程序设计组 ...答:include <iostream> using namespace std;int mon[] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };int main(){ bool isLeapYear = false;int year, month, day, dayth = 0;while(cin >> year >> month >> day){ dayth = 0;if(month > 12) return -1;if(...