Medium
Sort Three Numbers
Read three integers and print them from smallest to largest using only comparisons and swaps (no
sorted, min or max).Input
Three integers.
Output
One line.
Sample 1
Input
3 1 2
Output
1 2 3
Sample 2
Input
1 2 3
Output
1 2 3
Output appears here