青竹木简忆紫薇吧 关注:22贴子:654
  • 2回复贴,共1

亲爱的、生日快乐!

只看楼主收藏回复

真好
我又陪你走过了一年
你也又陪我走过了一年
艾、
要幸福
我们还在你身边
now and forever


1楼2011-06-07 00:37回复



    3楼2013-08-26 12:10
    回复
      #include <stdio.h>
      int main(){
      int year;
      int month;
      printf("Input the year and the month");
      scanf("%d,%d",&year,&month);
      if(month!=2){
      if(month==1||month==3||month==5||month==7||month==8||month==10||month==12)
      printf("The month has 31 days");
      if(month==4||month==6||month==9||month==11)
      printf("The month has 30 days");
      }
      if(month==2){
      if(year%400==0||((year%100!=0)&&(year%4==0)))
      printf("The month has 29 days");
      else
      printf("The month has 28 days");
      }
      system("pause");
      }


      IP属地:上海4楼2013-10-25 16:46
      回复