結果 : algorithm for maximum and minimum of three numbers