clear // // // //Variable declaration lamda=5000*10**-8 //wavelength(cm) D=50 //separation between screen and slit(cm) d=0.05 //separation between slits(cm) //Calculation beta1=lamda*D/d //fringe width(cm) //Result printf("\n fringe width is %0.3f cm",beta1)