clear// //Variables IE = 10 //Emitter current (in milli-Ampere) IC = 9.8 //Collector current (in milli-Ampere) //Calculation IB = IE - IC //Base current (in milli-Ampere) //Result printf("\n Base current is %0.3f mA." ,IB)