結果 : algorithm to compare three numbers