1 2 3 4 5 6
clear // //node eqns are obtained form the figure printf("\n va=8.33V and vb=4.17V") i=8.33/(8) printf("\n current through 8 ohm resistor is= %0.1f A",i)