#include<stdio.h>
int main()
{
int year,month,days,day
printf("请输入年月日")
scanf("%d-%d-%d"袜指,&year,&month,&days)
switch(month)
{
case 1:
case 3:
case 5:
case 7:
case 8:
case 10:
case 12: day=31break
case 4:
case 6:
case 9:
case 11:day=30break
case 2:
if(year%4==0&&year%100!=0||year%400==0)
day=29
else
day=28break
default :printf("error\n")
}
printf("拆亮这个月有告御配%d天",day)
}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)