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)