Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var
- a, b, c, d : Integer;
- begin
- Readln(a,b,c,d);
- if a < b then Swap(a, b);
- if c < d then Swap(c, d);
- if a < c then Swap(a, c);
- if b < d then Swap(b, d);
- if b < c then Swap(b, c);
- Writeln(a, ' ', b, ' ', c, ' ', d);
- end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement