LearnPy Hub
← If…Else problems
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
solution.py
Output appears here
Sort Three Numbers · Python practice problem · LearnPy Hub