//chapter21 //example21.9 //page474 printf("The purpose of using series resistance R is : \n 1) if R is not present, diode will short voltage source in positive half cycle \n 2) so large current will flow which may damage voltage source or diode. \n To prevent this i.e. to protect diode and voltage source, R is used.")