1 2 3 4 5 6 7 8 9 10 11
//chapter10 //example10.1 //page182 Vs=10 // V Vd=1.6 // V If=20d-3 // A Rs=(Vs-Vd)/If printf("required series resistor = %.3f ohm",Rs)