Untitled
unknown
c_cpp
2 years ago
216 B
11
Indexable
#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";
}
}Editor is loading...