Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int n;
  4. int main () {
  5.  
  6. if(n<0)
  7. cout<<"-1";
  8. else if(n==0)
  9. cout<<"0";
  10. else
  11. cout<<"1";
  12.  
  13. return 0;
  14.  
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement