Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- system("cls");
- cout << "Enter a number: ";
- int x;
- cin >> x;
- system("cls");
- int y, z;
- y = x++;
- z = ++x;
- cout << "Result One (" << x << "++): " << y << endl;
- cout << "Result Two (++" << x << "): " << z << endl;
- system("pause");
- return main();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement