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<<"the number is even\n";
  9. }
  10. else {
  11. cout<<"the number is odd\n";
  12. }
  13. return 0;
  14. }
Success #stdin #stdout 0.01s 5324KB
stdin
15
stdout
the number is odd