//Example 23_1 clc(); clear; //To find the focal length of the reading glasses d1=25 //units in cm d2=-75 //units in cm f=(d1*d2)/(d2+d1) //Units in cm printf("The focal length of the reading glasses is f=%.2f cm",f)