1 2 3 4 5 6 7 8 9
// Example 2.15, page no-38 clear clc h=2 k=2 l=0 a=4.938*10^-10 d=a/sqrt(h^2+k^2+l^2) printf("\nThe lattice spacing for (220) plane is %.3f*10^-10 m",d*10^10)