clear //Given u0=-200.0 //cm f0=30.0 //cm fe=3 //Calculation v0=1/((1/f0)+1/u0) a=v0+fe //Result printf("\n Separation between the objective and eyepiece is %0.1f cm",a)