fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int A, B, C;
  6. int a, b,c,x;
  7. cin>>A>>B>>C;
  8.  
  9. a = A;
  10. b = B;
  11. c = C;
  12. if (A > B) {
  13. x = A;
  14. A = B;
  15. B = x;
  16. }
  17.  
  18. if (A > C) {
  19. x = A;
  20. A = C;
  21. C = x;
  22. }
  23.  
  24. if (B > C) {
  25. x = B;
  26. B = C;
  27. C = x;
  28. }
  29. cout << A << endl;
  30. cout << B << endl;
  31. cout << C << endl;
  32. cout << endl;
  33. cout << a << endl;
  34. cout << b << endl;
  35. cout << c << endl;
  36.  
  37. }
  38.  
Success #stdin #stdout 0s 5320KB
stdin
Standard input is empty
stdout
-766119168
0
21944

0
-766119168
21944