summaryrefslogtreecommitdiff
path: root/3665/CH2/EX2.12/Ex2_12.sce
blob: c5873c5b043881abf06793fbf01b001a4fb35402 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
clc//
//
//

//Variable declaration
mw=23+35.5;     //molecular weight of NaCl(gm/mol)
N=6.023*10^23;    //avagadro number(per mol)
d=2.18;       //mass of unit volume

//Calculation
M=mw/N;     //mass of NaCl molecule(gm)
n=2*d/M;      //number of atoms per unit volume(atoms/cm^3)
a=(1/n)^(1/3);     //distance between 2 adjacent atoms(cm)

//Result
printf("\n distance between 2 adjacent atoms is %e cm = %0.2f angstrom ",a,a*10^8)