fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. int number;
  7. cin >> number;
  8. if (number % 2 == 0) {
  9. cout << "Even" << endl;
  10. } else {
  11. cout << "Odd" << endl;
  12. }
  13.  
  14. }
Success #stdin #stdout 0.01s 5296KB
stdin
3
stdout
Odd