if((year%4==0&&year%100!=0)||year%400==0) { printf("%d is a yunnian,and the datesum is 29 days!\n",year); } else printf("%d is not a yunnian,and the datesum is 28 days!\n",year); }