fork(1) download
  1. program xyz;
  2. var x, y, z: integer;
  3.  
  4. begin
  5. read(x, y, z);
  6.  
  7. if (x <= y) and (y <= z) then
  8. write(x, ' ', y, ' ', z)
  9. else if (x <= z) and (z < y) then
  10. write(x, ' ', z, ' ', y)
  11. else if (y < x) and (x <= z) then
  12. write(y, ' ', x, ' ', z)
  13. else if (y <= z) and (z < x) then
  14. write(y, ' ', z, ' ', x)
  15. else if (z < x) and (x <= y) then
  16. write(z, ' ', x, ' ', y)
  17. else
  18. write(z, ' ', y, ' ', x);
  19. end.
Success #stdin #stdout 0.01s 5296KB
stdin
9 1 3
stdout
1 3 9