1 2 3 4 5 6 7 8
//Example 3.4, page 78 clc n=1 n1=1.5 r=2//in cm s=12//in cm f=r/(n1-n) printf("\n The focal length is %d cm",f)