clear //Given a=15 b=4 c=12.0 d=10 //Calculation R=(a*b)/c X=(d*R)/(d-R) //Result printf("\n The value of resistance is %0.3f ohm", X)