blob: 596b314cb6a7d867c38ec7c78a67e47095dba49e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
R1=8; // Assigning values to resistors
R2=6;
R3=3;
R4=18;
R5=5;
R=1/((1/R2)+(1/R3)); //simplifying the network
Rs1=R+R4;
Rs2=1/((1/Rs1)+(1/R5));
Rs3=R1+Rs2;
V=60;
I=V/Rs3; // Current through the simplified network
disp("Amperes",I,"Current through 8 Ohm resistor");
|