InnaSibirova

Модуль

Nov 8th, 2019
307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.13 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main() {
  4. int a, i;
  5. cin >> a;
  6. i = (a >> 31);
  7. cout << ((a + i) ^ i);
  8. return 0;  
  9. }
Add Comment
Please, Sign In to add comment