結果 : write function of input and output devices