打印1000到2000之间的闰年,并输出一共有多少个。

#include<stdio.h>
int main()
{ int year,count=0;
for(year=1000;year<=2000;year++)
{
if(year%4==0&&year%100!=0)
{

printf(" %d",year);
count++;}

else if (year%400==0)
{
printf(" %d",year);
count++;
}
}printf(“\n count=%d”,count);
return 0;}