1 2 3 4 5 6 7 8 9 10 11
clear //Given u=-10.0 //cm f=-15.0 //Calculation v=1/((1/f)-(1/u)) m=-v/u //Result printf("\n (i) Image position is %0.3f cm", v)