clear //Given f=12.0 v=4.0 //Calculation u=1/((1/f)-(1/v)) m=-v/u //Result printf("\n (i) Object position is %0.3f cm", u) printf("\n (ii) Magnification is %0.2f ",m)