判断日期是该年的第几天
判断日期是该年的第几天
void date()
{
int i,year,month,date,sum = 0;
printf("请输入年、月、日:");
scanf("%d %d %d",&year,&month,&date);
int a[12] = {31,28,31,30,31,30,31,31,30,31,30,31};
int b[12] = {31,29,31,30,31,30,31,31,30,31,30,31};
if((year % 4 == 0) &
原创
2020-10-25 13:11:00 ·
352 阅读 ·
0 评论