clc // Given that d = 0.0001 // distance between two slits in meter Beta = 0.005 // width of the fringes formed in meter D = 1 // distance between slit and screen in meter // Sample Problem 10 on page no. 1.43 printf("\n # PROBLEM 10 # \n") lambda = (Beta * d) / D // calculation for wavelength of light = %e meter printf("\n Standard formula used \n lambda = (Beta * d) / D.\n") printf("\n Wavelength of light = %f A. ",lambda*1e10)