Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. bool is_leap_year(const int year);
  5.  
  6. int main()
  7. {
  8.  
  9. }
  10.  
  11. bool is_leap_year(const int year)
  12. {
  13. if(year % 4 == 0)
  14. {
  15. if(year % 100 == 0 && year % 400 != 0)
  16. return false;
  17. return true;
  18. }
  19. return false;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement