Read three integers and sort them in ascending order. After, print these values in ascending order, a blank line and then the values in the sequence as they were readed.
The input contains three integer numbers.
Present the output as requested above.
Input Sample | Output Sample |
---|---|
7 21 -14 | -14 7 21 |
-14 21 7 | -14 7 21 |
10 -1 7 | -5 7 10 |
0 1 0 | 0 0 1 |
0 10 9 | 0 9 10 |
-1 -2 -5 | -5 -2 -1 |