fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a, b, c;
  6. cin >> a >> b >> c;
  7. if (a > b) {
  8. int aux = b;
  9. b = a;
  10. a = aux;
  11. }
  12. if (a > c) {
  13. int aux = c;
  14. c = a;
  15. a = aux;
  16. }
  17. if (b > c) {
  18. int aux = c;
  19. c = b;
  20. b = aux;
  21. }
  22. cout << a << " " << b << " " << c;
  23. return 0;
  24. }
Success #stdin #stdout 0s 5276KB
stdin
Standard input is empty
stdout
-1315572208 21940 32767