fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3. int main() {
  4. int x,y;
  5. cin >> x >> y;
  6. int sum = x + y;
  7. int multi = x * y;
  8. int sub = x - y;
  9. cout <<x<<"+"<<y<<"="<< sum << endl;
  10. cout <<x<<"*"<<y<<"="<< multi << endl;
  11. cout <<x<<"-"<<y<<"="<< sub << endl;
  12.  
  13.  
  14. }
  15.  
Success #stdin #stdout 0s 5284KB
stdin
5   10
stdout
5+10=15
5*10=50
5-10=-5