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")