clear //Given f=-0.2 //m v=0.3 //m //Calculation u=1/((1/v)-(1/f)) //Result printf("\n Position of the point is %0.3f m", u)