fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int i = 123;
  8. int j = 55;
  9. int k;
  10.  
  11. cout << "i = " << i << endl;
  12. cout << "j = " << j << endl;
  13.  
  14. k = i + j;
  15.  
  16. cout << "k = " << k << endl;
  17.  
  18.  
  19. i = i + 1;
  20. k = i - j;
  21.  
  22. cout << k << endl;
  23.  
  24. int new_var = i+2*j;
  25.  
  26. cout << new_var << endl;
  27.  
  28. return 0;
  29.  
  30. }
Success #stdin #stdout 0.01s 2724KB
stdin
Standard input is empty
stdout
i = 123
j = 55
k = 178
69
234