实验二2

#include "stdafx.h"

int main(int argc, char* argv[]) {  int year;

 scanf("%d",&year);

   if(year%4==0)

  {

        if(year%100!=0)

        printf("input the year is 29 days");

        else

        {

          if(year%400==0)

          printf("input the year is 29 days");

          else

          printf("input the year is 28 days");

        }

}

     else

     printf("input the year is 28 days");//year:2014,month:2,days:28

   return 0;

}

 

 

posted @ 2019-04-08 15:26  p_201821440046  阅读(136)  评论(0编辑  收藏  举报