标签:
#include<stdio.h> int main() { int year; year=1900; while(year<=2000) { if(year%400==0||year%4==0&&year%100!=0) { printf("%d是闰年\n",year); year++; } else year++; } return 0; }
C语言求闰年代码
原文地址:http://www.cnblogs.com/shouce/p/5277948.html