#include"stdio.h"
void main()
{
int year,num=0;
for(year=1000;year<=2000;year++)
if(year%40&&year%100!=0||year%4000)
{
num++;
printf("%d “,year);
}
printf(”\ntotal is %d\n",num);
}
#include"stdio.h"
void main()
{
int year,num=0;
for(year=1000;year<=2000;year++)
if(year%40&&year%100!=0||year%4000)
{
num++;
printf("%d “,year);
}
printf(”\ntotal is %d\n",num);
}