1 2 3 4 5 6 7 8 9 10 11
clear //Given u1=1 u2=1.5 R=1 //Calculation x=(u1+u2)/(u2-u1) //Result printf("\n Distance of the object is %0.3f R", x)