1 2 3 4 5 6 7 8 9 10 11
//chapter15 //example15.1 //page321 V=12 // V P=2 // W // since P=V*Ic we get Ic_max=P/V // in ampere printf("maximum collector current = %.3f mA \n",Ic_max*1000)