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, and then prints them.