Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- void main()
- {
- int a;
- cout << "a = ";
- cin >> a;
- a += (a >= 0 ? -10 : 10);
- cout << "result = " << a;
- cout << endl;
- system("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement