summaryrefslogtreecommitdiff
path: root/3755/CH2/EX2.30/Ex2_30.sce
blob: 38a0c3be89e91b2afef91e77eb8950f975e63681 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
clear
//
//
//

//Variable declaration
Vd=3*10^22;       //density(gm/cc)
n=8*(1/8);     //number of atoms

//Calculations
a=(n/Vd)^(1/3);      //lattice constant(cm)

//Result
printf("\n lattice constant is %0.2f angstrom",a*10^8)