i=int(input("enter the value of current:"))
r1=int(input("enter the value of R1:"))
r2=int(input("enter the value of R2:"))
r=r1+r2
i1=i*(r2/r)
i2=i*(r1/r)
print("Current across R1 is {:1.2f} and r2 {:1.2f}".format(i1,i2))

i=int(input("enter the value of current:"))
r1=int(input("enter the value of R1:"))
r2=int(input("enter the value of R2:"))
r3=int(input("enter the value of R3:"))
r4=int(input("enter the value of R4:"))
i1=(i*((r2*r3*r4)/((r2*r3)+(r3*r4)+(r2*r4)))/(r1+((r2*r3*r4)/((r2*r3)+(r3*r4)+(r2*r4)))))
i2=(i*((r1*r3*r4)/((r1*r3)+(r3*r4)+(r1*r4)))/(r2+((r1*r3*r4)/((r1*r3)+(r3*r4)+(r1*r4)))))
i3=(i*((r1*r2*r4)/((r2*r1)+(r3*r4)+(r2*r4)))/(r3+((r2*r1*r4)/((r2*r1)+(r1*r4)+(r2*r4)))))
i4=(i*((r2*r3*r1)/((r2*r3)+(r3*r1)+(r2*r1)))/(r4+((r2*r3*r1)/((r2*r3)+(r3*r1)+(r2*r1)))))