1 2 3 4 5 6 7 8 9 10 11 12
clear //Given l=6.3*10**-7 //m a=3.6 //Degree n=10 //Calculation // d=(n*l)/sin(a*3.14/180.0) //Result printf("\n Slit width is %0.1f mm",d*10**3)