summaryrefslogtreecommitdiff
path: root/3669/CH2/EX2.6/6.sce
blob: 1d4285147470e2f8e75bd2248e11568aa02668b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12

//Variable declaration
n=8;     //number of atoms
a=5.62*10**-10;     //lattice constant(m)
M=72.59;   //atomic weight(kg)
Na=6.02*10**26;    //avagadro number

//Calculation
rho=n*M/(a**3*Na);   //density(kg/m**3)

//Result
printf('density is %0.3f   kg/m**3  \n',(rho))