Home > Back-end >  C simple judgment leap year program
C simple judgment leap year program

Time:06-07

Int main ()
{
Int year;
The scanf (" % d ", & amp; Year);
If (year % 4!=0)
Printf (" is not a leap year!" );
The else
If (year % 100!=0)
Printf (" is a leap year!" );
The else
If (year %==0 400)
Printf (" is a leap year!" );
The else
Printf (" is not a leap year!" );
}

CodePudding user response:

BBS is used to discuss the problem of oh, such can write in the blog, blog long-term preservation, and the search engine (average person I don't tell him )

CodePudding user response:

I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10581430.html
I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10768339.html
  • Related