blob: 5768f82689761a2f64a61f16d99a52a764263cff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
clear//
//Variables
IB = 0.125 //Base current (in milli-Ampere)
beta = 200.0 //common emitter current gain
//Calculation
IC = IB * beta //Collector current (in milli-Ampere)
IE = IC + IB //Emitter current (in milli-Ampere)
//Result
printf("\n Value of collector current is %0.3f mA.\nValue of emitter current is %0.3f mA.",IC,IE)
|