fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. int n = -56;
  7.  
  8. if ( n >= 0 ) {
  9. cout << " n is positive ";
  10. } else {
  11. cout << " nis negative ";
  12. }
  13. return 0;
  14. }
Success #stdin #stdout 0.01s 5324KB
stdin
Standard input is empty
stdout
 nis negative