InnaSibirova

Плюс/минус

Nov 8th, 2019
58
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. using namespace std;
  3. int main() {
  4. int a;
  5. cin >> a;
  6. if(a >> 31 == -1) {
  7.     cout << '-';
  8.    
  9. }
  10. else {
  11.     cout << '+';
  12. }
  13.    
  14. }
RAW Paste Data