The median of three numbers is the one that has the middle value of all three. In other words, if the three numbers are sorted, the one in the middle is the median.
There are several ways of comparing operations among variable a, b and c to determine which one is the median.
One brute force way is to directly represent verify the following formula:
