Advertisement
Guest User

Untitled

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