blob: 99ddc353bcfcc74e7b58cd7d0de7a085fdf3f9a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
//Example 1_13 page no:16
clc
//apply kirchoff's law to the given circuit
I=50//current in ampere
R1=2;//resistance in ohm
R2=1;//resistance in ohm
R3=5;//resistance in ohm
V=I/(1/2+1/1+1/5)
I1=V/R1;
disp(I1,"Current flowing in 2 ohm resistor is (in ampere)")
I2=V/R2;
disp(I2,"Current flowing in 1 ohm resistor is (in ampere)")
I3=V/R3;
disp(I3,"Current flowing in 5 ohm resistor is (in ampere)")
|