1 2 3 4 5 6 7 8 9 10 11 12
clear //Given u=1.56 R1=20.0 //cm u1=-10.0 //cm //Calculation f=1/((u-1)*(2/R1)) v=1/((1/u1)+(1/f)) //Result printf("\n Position of the image formed is %0.2f ",v)