fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a =2, b =3;
  6. cout<<"a+b ="<<a + b<<endl;
  7. cout<<"a-b ="<<a-b<<endl;
  8. cout<<"a*b="<<a*b<<endl;
  9. cout<<"a/b="<<a/b<<endl;
  10. cout<<"a%b="<<a%b<<endl;
  11. return 0;
  12. }
Success #stdin #stdout 0.01s 5316KB
stdin
Standard input is empty
stdout
a+b =5
a-b =-1
a*b=6
a/b=0
a%b=2