润年的判断方法答:回答:在公历(格里历)纪年中,有闰日的年份叫闰年,一般年份365天,闰年为366天。由于地球绕太阳运行周期为365天5小时48分46秒(合365.24219天)即一回归年,公历把一年定为365天。所余下的时间约为四年累计一天,加在二月里,所以平常年份每年365天,二月为28天,闰年为366天,二月为29天。因此,每400年中有9...
输入年号和月份,输出这一年该月的天数(一个年数,先判断是否是闰年)答:.#include <stdio.h> int leapYear(int year) // 判断是否为润年 { if ((year % 4 == 0 && year % 100 != 0) || year % 400 == 0)return 1;else return 0;} void main(){ int year, month;int m[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}...