/* L4-3.cpp (Even or Odd) Why does this program give a correct output when you enter 23 but not when you enter 24? */ #include using namespace std; int main() { int x; cout <<"Enter a number" << endl; cin >> x; if (x/2 == 0) cout <<"Even" << endl; else cout <<"Odd" << endl; return 0; }