Advertisement
Filip13

prestupna godina

Oct 10th, 2022
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int year;
  7. cin >> year;
  8.  
  9. if ((year % 4 == 0 && year % 100 != 0) || year % 400 == 0)
  10. cout << "da";
  11.  
  12. else
  13. cout << "ne";
  14. return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement