結果 : finding input and output values of a function