int Isleapyear(int year)
{ if((year%4==0)&&(year%100!=0)||(year%400==0)) return 1; else return 0;
}
int main()
{ int a[12]={31,28,31,30,31,30,31,31,30,31,30,31}; int year,month,day,count=0; int i; printf("please input the year month and the day\n"); scanf("%d%d%d",&year,&month,&day); for(i=0;i<month;i++) count+=a[i]; count+=day;
#include
int main()
{ int y,m,d,count=1,days[]={0,31,28,31,30,31,30,31,31,30,31,30,31}; printf("请输入:年 月 日(yyyy mm dd)\n"); scanf("%d%d%d",&y,&m,&d); while(count2) ...