Advertisement
dllbridge

Untitled

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