fork download
  1. #include<iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int a = 10;
  6.  
  7. a++; // Increased value by one
  8. cout << a << endl; // print 11
  9.  
  10. a--; // decreased value by one
  11. cout << a << endl; // prints 10
  12.  
  13. return 0;
  14. }
Success #stdin #stdout 0s 4364KB
stdin
Standard input is empty
stdout
11
10