1996年1年1日到2016年1月1日之间有多少天编程

1996年1年1日到2016年1月1日之间有多少天编程
2025-03-06 23:38:47
推荐回答(1个)
回答1:

#include
int main()
{int y,s=0;
 for(y=1996;y<=2015;y++) 
   s+=365+(y%4==0&&y%100||y%400==0);
 printf("%d\n",s);
 return 0;
}