fork download
  1. #include <iostream> // 1
  2. using namespace std; // 2
  3. // 3
  4. int main() { // 4
  5. // 5
  6. int n; // 6
  7. // 7
  8. cout << "Number: "; // 8
  9. cin >> n; // 9
  10. //10
  11. if (n % 2 == 0) { //11
  12. cout << "Even"; //12
  13. } else { //13
  14. cout << "Odd"; //14
  15. } //15
  16. //16
  17. cout << endl; //17
  18. cout << "Done"; //18
  19. //19
  20. cout << endl; //20
  21. //21
  22. cout << "Finish"; //22
  23. //23
  24. cout << endl; //24
  25. return 0; //25
  26. }
Success #stdin #stdout 0.03s 25548KB
stdin
Standard input is empty
stdout
#include <iostream>        // 1
using namespace std;       // 2
                            // 3
int main() {               // 4
                            // 5
    int n;                 // 6
                            // 7
    cout << "Number: ";    // 8
    cin >> n;              // 9
                            //10
    if (n % 2 == 0) {      //11
        cout << "Even";    //12
    } else {               //13
        cout << "Odd";     //14
    }                      //15
                            //16
    cout << endl;          //17
    cout << "Done";        //18
                            //19
    cout << endl;          //20
                            //21
    cout << "Finish";      //22
                            //23
    cout << endl;          //24
    return 0;              //25
}