fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a, b;
  6. cin >> a >> b;
  7. if (a > b) {
  8. int aux = b;
  9. b = a;
  10. a = aux;
  11. }
  12. cout << a <<" "<< b;
  13. return 0;
  14. }
Success #stdin #stdout 0s 5280KB
stdin
5 3
stdout
3 5