1614700502.

#include <stdio.h>
int main()
{
 int year,days;
 printf("input the year:");
 scanf("%d",&year);
 if(year%4==0)
 {
  if(year%100==0)
  {
   if(year%400==0)
    days=29;
   else
    days=28;
  }
  else
   days=29;
 }
 else
  days=28;
 printf("year:%d,month:2,days:%d",year,days);
  return 0;
}

posted @ 2019-04-25 14:36  p201821430042  阅读(68)  评论(0编辑  收藏  举报