Advertisement
Guest User

Untitled

a guest
May 21st, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.19 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. void main()
  5. {
  6.     int a;
  7.     cout << "a = ";
  8.     cin >> a;
  9.     a += (a >= 0 ? -10 : 10);
  10.     cout << "result = " << a;
  11.     cout << endl;
  12.     system("pause");
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement