Advertisement
dllbridge

Untitled

Oct 25th, 2022
805
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.30 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. unsigned int a, c;
  5.  
  6. int main()
  7. {
  8.    
  9.    cin >> a;
  10.    
  11.    for(int i = 0; i < 100; i+=2)
  12.    {
  13.         a = a - 2;
  14.         c = a;
  15.        if((c % 2) == 0)
  16.        {
  17.            cout << "YES";
  18.            return 0;
  19.        }
  20.    }
  21.    
  22.    cout << "NO";
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement