Design an algorithm that compare three numbers and display the smallest to the screen?

display a if a<b and a<c

display b if b<a and b<c
display c if c<a and c<b
...
what if there is no single smallest value?