int main(int argc, const char *argv[])
{
int a=0,day=0,year=0,m=0,days=0;
printf("输入年月日");
scanf("%d%d%d",&year,&m,&day);
switch(m){
case 12:{
if(day>31){
printf("输入错误\n");
}
day =day+30;}
case 11:
day =day+31;
case 10:
day =day+30;
case 9 :
day =day+31;
case 8 :
day =day+31;
case 7 :
day =day+30;
case 6 :
day =day+31;
case 5 :
day =day+30;
case 4 :
day =day+31;
case 3 :
输入年月日输出这是这一年的第几天,区分平润年
于 2022-10-03 10:54:17 首次发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)