1 2 3 4 5 6 7 8 9 10 11 12
clear //Given v=-75.0 u=0 //Calculation f=v P=100/f //Result printf("\n Focal length is %0.3f cm", f) printf("\n Power of the lens is %0.2f D",P)