1 2 3 4 5 6 7 8 9 10
clear //Given f=-15.0 //cm v=-10.0 //cm //Calculation u=1/((1/v)-1/f) //Result printf("\n The object is placed at a distance of %0.3f cm", u)