blob: c3c7a711ac41d1b6f43ebf0cc3b5bdd7b54f61ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
clear
//
//
//
//Variable declaration
rho=6250; //density(kg/m^3)
M=60.2; //molecular weight
N=6.02*10^26; //avagadro number
n=4; //number of atoms
//Calculations
a=(n*M/(rho*N))^(1/3); //lattice constant(m)
//Result
printf("\n lattice constant is %0.0f angstrom",a*10^10)
|