fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int n;
  6. cin >> n;
  7. if(n%2 == 0)
  8. cout << "even" << endl;
  9. else
  10. cout << "odd" << endl;
  11. return 0;
  12. }
Success #stdin #stdout 0.01s 5284KB
stdin
5
stdout
odd