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