输出1900-2000年中是闰年的年份

#include <stdio.h>
int main()
{int year,i,t;
for(i=1900;i<=2000;i++)
{
if (i%4==0&&i%100!=0)
 printf("%dÊÇÈòÄê¡£\n",i);
if(i%100==0&&i%400==0)
 printf("%dÊÇÈòÄê\n¡£",i);
}
  return 0;
}

猜你喜欢

转载自blog.csdn.net/weixin_43742177/article/details/84261727