1 2 3 4 5 6 7 8 9 10
clear //Given R1=15 //ohm R2=30 //ohm //Calculation R=R1*R2/(R1+R2) //Result printf("\n The equivqlent resistance between A and B is %0.3f ohm", R)