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)