1 2 3 4 5 6 7 8 9 10
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)