#define DAYS_FEB(year) (year % 4 == 0 && year % 100 != 0) || year % 400 == 0
#include <stdio.h>
int main()
{
int year,days;
scanf("%d", &year);
if (year > 999 && year < 10000) {
if (DAYS_FEB(year))
{
days = 29;
}
else { days = 28; }
}
else {
printf("Input error!");
}
printf("days of the FEB.: %d\n",days);
return 0;
}
02-06
1万+
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)