Skip to content

Latest commit

 

History

History
executable file
·
21 lines (14 loc) · 557 Bytes

03. Simple Sort.md

File metadata and controls

executable file
·
21 lines (14 loc) · 557 Bytes

Simple Sort

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.

Input

The input contains three integer numbers.

Output

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