#include <stdio.h>
int main()
{ int i=1000;
for(i=1000;i<=2000;i++)
{ if(i%100==0&&i%400==0)
printf("%d是闰年\n",i);
else if(i%4==0&&i%100!=0)
printf("%d是闰年",i);
}
}
输出1000年到2000年的闰年
猜你喜欢
转载自blog.csdn.net/qq940051592/article/details/84404970
今日推荐
周排行