//chapter10 //example10.2 //page183 Vs=15 // V Vd=2 // V Rs=2.2d3 // ohm If=(Vs-Vd)/Rs printf("current through LED = %.3f A or %.3f mA",If,If*1000)