Advertisement
YamanQD

4/A : Watermelon

Mar 24th, 2020
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.23 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6.     int w;
  7.    
  8.     cin >> w;
  9.    
  10.     if (w == 2)
  11.     cout << "NO";
  12.    
  13.     else if(w % 2 == 0)
  14.     cout << "YES";
  15.    
  16.     else if(w % 2 == 1)
  17.     cout << "NO";
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement