Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- bool is_leap_year(const int year);
- int main()
- {
- }
- bool is_leap_year(const int year)
- {
- if(year % 4 == 0)
- {
- if(year % 100 == 0 && year % 400 != 0)
- return false;
- return true;
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement