How do you find the greatest number among three numbers(x, y, z) such that the code should display the largest, the second-largest, and the least of the three numbers? for example: "y is the largest, z is the second-largest, and x the least."

Source: Windows Questions C++