#include<stdio.h>标签:闰年,400,year,2000,&&,printf,year%,100,1000 From: https://blog.51cto.com/u_15922371/5981230
int main()
{
int yeaar=0;
for(year=1000;year<=2000;year++)
{
if(year%4==0 && year%100!=0)
printf("%d ",year);
elae if(year%400==0)
printf("%d ",year);
//简单的方法if((year%4==0 && year%100!=0) || (year%400==0))
}
return 0;
}