fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. void Check(int a) {
  5. if (a % 2 == 0) {
  6. cout << "The Number '" << a << "' is EVEN" << endl;
  7. }
  8. else {
  9. cout << "The Number '" << a << "' is ODD" << endl;
  10. }
  11.  
  12. }
  13. int main()
  14. {
  15. int x;
  16. cout << "Enter the number you want to check: ";
  17. cin >> x;
  18. Check(x);
  19. }
Success #stdin #stdout 0.01s 5288KB
stdin
Standard input is empty
stdout
Enter the number you want to check: The Number '32767' is ODD