1 2 3 4 5 6 7 8 9 10 11
clear //Given D=1.60 //m l=6328*10**-10 //m w=4.0*10**-3 //Calculation d=(2*D*l)/w //Result printf("\n Width of the slit is %0.2f mm",d*10**3)