Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- #include <cmath>
- #include <math.h>
- using namespace std;
- int a;
- int main(int argc, const char * argv[]) {
- cin >> a;
- if (a % 100 != 0 && a % 4 == 0) {
- cout << "YES";
- }
- else if (a % 400 == 0){
- cout << "YES";
- }
- else {
- cout << "NO";
- }
- }
Add Comment
Please, Sign In to add comment