fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6.  
  7. int a, b;
  8.  
  9. cout << "Ingresa el valor de a:";
  10. cin >> a;
  11. cout << "Ingresa el valor de b:";
  12. cin >> b;
  13.  
  14. if (a > b) {
  15. cout << a + b << std::endl;
  16. cout << a * b << std::endl;
  17. }
  18.  
  19. if (a < b) {
  20. cout << a - b << endl;
  21. cout << a / b << endl;
  22. }
  23.  
  24. if (a == b) {
  25. cout << "0" << endl;
  26. cout << "1" << endl;
  27. }
  28.  
  29. return 0;
  30.  
  31. }
Success #stdin #stdout 0.01s 5308KB
stdin
Standard input is empty
stdout
Ingresa el valor de a:Ingresa el valor de b:-1371683326
-41862