fork download
  1. // Level 1 - Contest 2 - Question 2 - Solution 1.
  2. #include <iostream>
  3. #include <cmath>
  4.  
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9. int X = 0;
  10. int Y = 0;
  11. cin >> X >> Y;
  12.  
  13. cout
  14. << X << " + " << Y << " = " << X + Y << endl
  15. << X << " * " << Y << " = " << X * Y << endl
  16. << X << " - " << Y << " = " << X - Y << endl;
  17.  
  18. return 0;
  19. }
Success #stdin #stdout 0.01s 5308KB
stdin
5 10
stdout
5 + 10 = 15
5 * 10 = 50
5 - 10 = -5