fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.  
  6. int a = 10, b = 2;
  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. return 0;
  15. }
Success #stdin #stdout 0s 5316KB
stdin
a = 5;
b = 7;
stdout
12
8
20
5
0
0