Untitled

mail@pastecode.io avatar
unknown
c_cpp
a year ago
216 B
2
Indexable
Never
#include <iostream>
using namespace std;

int main()
{
    int a;
    cin >> a;
    if (a % 4 == 0 or a % 100 == 0 and a % 400 != 0) {
        cout << "YES";
    }
    else{
        cout << "NO";
    }
}