#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
int year = 0;
for (year = 1000;year<3000;year++)
{
if ((year % 4 == 0 && year % 100 != 0) || year % 400 == 0)
printf("%d ", year);
}
return 0;
}
标签:return,SECURE,闰年,int,&&,year,main,方法 From: https://blog.51cto.com/u_15838933/5795077