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



stdout
enter the  numbernegative