Source: http://studymaterial.unipune.ac.in:8080/jspui/bitstream/123456789/5297/4/Dr.SRPotdar_TYBSc_Chapter_2_2_Input_output_functions.pdf