//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)