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. cout << "i+j = " << i+j << endl;
  15.  
  16. cout << "i-j = " << i-j << endl;
  17.  
  18. cout << "i*j = " << i*j << endl;
  19.  
  20. cout << "i/j = " << i/j << endl;
  21.  
  22. cout << "i%j = " << i%j << endl;
  23.  
  24. cout << "I am now done." << endl;
  25.  
  26. return 0;
  27.  
  28. }
Success #stdin #stdout 0.02s 2680KB
stdin
Standard input is empty
stdout
i = 123
j = 55
i+j = 178
i-j = 68
i*j = 6765
i/j = 2
i%j = 13
I am now done.