SortThree reads three whole numbers and prints them in increasing order, then the smallest, the middle and the largest, and finally whether all three are equal, two are equal, or all are different.
Use only if statements and the swap of two variables (no arrays, no library method): compare-and-swap a and b, then b and c, then a and b again. For the input
42 7 19
the program prints
In order: 7 19 42
Smallest: 7, middle: 19, largest: 42
All three are different