Usually we use an array because we want to access the array in a different order.
The program below reads in three numbers, sorts them, then prints them.