#include <stdio.h>int main(){ int y; for(y=1000;y<=2000;y++) if(y%100==0 && y%400==0||y%100!=0 && y%4==0) printf("%d\n",y); return 0;}
1000年---2000年之间的闰年
原文:http://zhaoguanwen.blog.51cto.com/10824932/1708611