clc // Given that d = 1.2 // distance of screen from slit in meter x = 3.7e-3 // distance between first maxima to central maxima in meter b = 2e-4 // slit-width in meter // Sample Problem 14 on page no. 2.43 printf("\n # PROBLEM 14 # \n") lambda = (x * b) / d // calculation for wavelength of light printf("\n Standard formula used \n lambda = (x * b) / d.\n") printf("\n Wavelength of light = %e meter. ",lambda)