blob: 9c803bf24ee4f36f8b2b0e5b9a1a76ddc272f2bb (
plain)
1
2
3
4
5
6
7
8
9
|
I=5; //Assigning values to the parameters
I1=2;
R2=6;
I2=I-I1;
V=R2*I2;
R1=V/I1;
P=I1*I1*R1+I2*I2*R2;
disp("Ohms",R1,"Value of R1")
disp("Watts",P,"Power absorbed by the circuit")
|