blob: 51648e4808ad9659912edfed77f70ef9ecb8de71 (
plain)
1
2
3
4
5
6
7
8
|
//Example 22_2
clc();
clear;
//To find the location of the image
d1=10 //units in cm
d2=5 //units in cm
i=(d1*d2)/(d2-d1) //Units in cm
printf("The position of the image is i=%d cm",i)
|