fork download
  1. #include <iostream>
  2. using namespace std;
  3. int main() {
  4. int n;
  5. cin>>n;
  6. if(n%2==0)
  7. {cout<<"YES"<<endl;}
  8. else{cout<<"NO"<<endl;}
  9. return 0;
  10. }
Success #stdin #stdout 0.01s 5292KB
stdin
Standard input is empty
stdout
NO