fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int num;
  6. cout<<"enter the number:"<<endl;
  7. cin>>num;
  8. if(num/2==0){
  9.  
  10. cout<<"Even"<<endl;
  11.  
  12. }else{
  13. cout<<"negative"<<endl;
  14. }
  15. return 0;
  16. }
Success #stdin #stdout 0s 5320KB
stdin
4
stdout
enter the number:
negative