blob: 68e5afaeb3b0d74748de8f0f270f646df9b79933 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
clc//
//
//
//Variable declaration
a=0.38; //lattice constant(nm)
h=1;
k=1;
l=0;
//Calculation
d=a/sqrt(h^2+k^2+l^2); //distance between planes(nm)
//Result
printf("\n distance between planes is %0.2f nm",d)
|