1 2 3 4 5 6 7 8 9 10 11
clear //Given D=1 //m l=5*10**-7 //m d=0.1*10**-3 //m //Calculation W=(2*D*l)/d //Result printf("\n Width of the central maximum is %0.3f cm", W*10**2)