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;
- if (a >= 0)
- a -= 10;
- else
- a += 10;
- cout << "result = " << a;
- cout << endl;
- system("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement