blob: 8980fa419518edf7045a9eab11be1f0099122298 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
clear
//
//
//
//Variable declaration
rho=8.96; //density(gm/cc)
M=63.5; //molecular weight
N=6.02*10^23; //avagadro number
n=4; //number of atoms
//Calculations
a=(n*M/(rho*N))^(1/3); //lattice constant(cm)
d=a/sqrt(2)*10^8; //distance between ions(angstrom)
//Result
printf("\n distance between ions is %0.2f angstrom",d)
|