1 2 3 4 5 6 7 8 9
// Example 2.7, page no-33 clear clc h=3 k=2 l=1 a=4.12*10^-10 d=a/sqrt(h^2+k^2+l^2) printf("The lattice spacing for the plane(321) is %.4f*10^-10 m",d*10^10)