clear //Given u=1.6 t=8 t1=4.5 u1=1.5 t2=6 u2=1.33 //Calculation d=t*(1-(1/u)) d1=t1*(1-(1/u1)) d2=t2*(1-(1/u2)) D=d+d1+d2 //Result printf("\n Position of mark from the bottom is %0.0f cm",D)