how do you find the smallest and largest number of 3 numbers.

without using logical operators and else statements, only if and relational operators ? is there any other way to find it out without checking every number against each other using if statements ?