blob: 4f9ae46665ea323ea51b2e1a314bec83a1a5ae46 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
clear
//given
Vl=15 //V
Rl=2.0*10**3
Iz=10 //mA
R1=20.0
//Calculation
Il=(Vl/Rl)*10**3
Ir=Iz+Il
Vr=Ir*10**-2*R1
V=Vr+Vl
//Result
printf("\n Voltage is %0.3f V", V)
printf("\n Zener rating required is %0.3f mA",Ir)
|