結果 : write different types of input and output devices