summaryrefslogtreecommitdiff
path: root/3755/CH2/EX2.3/Ex2_3.sce
blob: e0cdc605a11f85196013ffd39a8653daebe07f44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
clear
//
//
//

//Variable declaration    
M=120;     //atomic mass
N=6.023*10^23;      //avagadro number
n=2;
g=20;       //mass(gm)

//Calculations
u=n*M/N;     
nu=g/u;       //number of unit cells

//Result
printf("\n number of unit cells is %0.3f *10^22",nu/10^22)