Advertisement
Guest User

Untitled

a guest
May 27th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. system("cls");
  7. cout << "Enter a number: ";
  8. int x;
  9. cin >> x;
  10. system("cls");
  11. int y, z;
  12. y = x++;
  13. z = ++x;
  14. cout << "Result One (" << x << "++): " << y << endl;
  15. cout << "Result Two (++" << x << "): " << z << endl;
  16. system("pause");
  17. return main();
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement