fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.  
  6. int i=0;
  7.  
  8. i = i+1;
  9. cout << i << endl;
  10.  
  11. i += 1;
  12. cout << i << endl;
  13.  
  14. i++;
  15. cout << i << endl;
  16.  
  17. i = i-1;
  18. cout << i << endl;
  19. i -= 1;
  20. cout << i << endl;
  21. i --;
  22. cout << i << endl;
  23.  
  24. return 0;
  25. }
Success #stdin #stdout 0s 5264KB
stdin
Standard input is empty
stdout
1
2
3
2
1
0