clear //Given d=0.125*10**-3 //m l=4500*10**-10 //m D=1 //m //Calculation x2=(2*D*l)/d d1=2*x2 //Result printf("\n Separation between the fringes is %0.3f mm", d1*10**3)