Three numbers from the smallest
Task
The program reads three whole numbers (each on its own line) and prints them sorted from the smallest to the largest, separated by spaces.
Do not use the sorted, min or max functions or the sort method - solve it with conditions.
Examples
Input
5 1 3
Expected output
1 3 5
Rules
Solve it with conditions - no
sorted,sort,minormax.
After you submit, 6 hidden tests will also check your solution: already sorted, reverse order, two equal numbers, three equal numbers, negative numbers, the smallest in the middle.
You need to know
Python starts the first time you run code.
Ctrl+Enter runs the program. Tab indents. Press Esc, then Tab, to leave the editor.
Input (stdin)
Each line = one call to input().
Output
Hints
Try it yourself first. Each hint reveals a little more - and lowers the reward a little.
Signed out, hints are free - but no XP is awarded either.
Solution
The solution unlocks after the last hint.