clear; clc; printf("\nEx1.24\n"); //page no.-34 //given n=3;.....................//order lambda=0.79*10^-10;......//wavelength in m d=3.04*10^-10;..........//spacing in m //from bragg's law theta=asind((n*lambda)/(2*d))..........//angle in degrees printf("\nangle is 22.942 degrees\n");