闰年特点:该年份能被4整除,但不能被100整除

                  该年份能被4整除,又能被400整除

二、源码

   2:  
int main()
   4: {
int nYear;
);
, &nYear);
   8:  
if ((nYear % 4 == 0 && nYear % 100 != 0) || (nYear % 400 == 0))
  10:     {
, nYear);
  12:     }
else
  14:     {
, nYear);
  16:     }
  17:     getchar();
return 0;
  19: }

相关文章:

  • 2021-09-05
  • 2021-11-28
  • 2021-11-28
  • 2022-01-01
  • 2021-08-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-01
  • 2021-11-28
  • 2021-11-28
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案