blob: ef8513999b42b5610ff92ed5f147590d3694b5b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
clear
//Given
P1=6
P2=-2.0
//Calculation
P=P1+P2
f=1/P
//Result
printf("\n Focal length of the combination is %0.3f cm", f*10**2)
printf("\n Power of the combinationis %0.3f D",P)
|