fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.  
  6. int a = 11, b = 3;
  7.  
  8. cout << a+b << endl;
  9. cout << a-b << endl;
  10. cout << a*b << endl;
  11. cout << a/b << endl;
  12. cout << b/a << endl;
  13. cout << a%b << endl;
  14. cout << a++ << endl;
  15. cout << a++ << endl;
  16. cout << a++ << endl;
  17. cout << --b << endl;
  18. cout << b-- << endl;
  19. cout << b << endl;
  20. return 0;
  21. }
Success #stdin #stdout 0.01s 5284KB
stdin
a = 5;
b = 7;
stdout
14
8
33
3
0
2
11
12
13
2
2
1