fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a,b;
  6. cout<<"first number="<<endl;
  7. cin>>a;
  8. cout<<"second number="<<endl;
  9. cin>>b;
  10. cout<<"sum"<<a+b<<endl;
  11. cout<<"difference"<<a-b<<endl;
  12. cout<<"Product"<<a*b<<endl;
  13. cout<<"division"<<a/b<<endl;
  14.  
  15. return 0;
  16. }
Success #stdin #stdout 0.01s 5276KB
stdin
3
5
stdout
first number=
second number=
sum8
difference-2
Product15
division0