Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- int x;
- cin >> x;
- if ((x%100)==0) {
- x=(x/100);
- if ((x%4)==0) {cout << "YES" << endl;}
- else {cout << "NO" << endl;}
- }
- else if ((x%4)==0) {
- cout << "YES" << endl;
- }
- else {
- cout << "NO" << endl;
- }
- }
Add Comment
Please, Sign In to add comment