blob: 511be7370bb460fb9e91faff9eab757ce6ebb1b9 (
plain)
1
2
3
4
5
6
7
8
9
|
clear
//
//using thevenin's theorem
//applying kcl at node a va is obtained
va=12
vth=12-1.2*3 //voltage eqn
rth=1.33 //2||4
i5=vth/(rth+5)
printf("\n current through 5 ohm resistor is= %0.1f A",i5)
|