summaryrefslogtreecommitdiff
path: root/1427/CH22/EX22.9/22_9.sce
blob: 7091bda8f4fb99d60d06ae59f9483823045c0636 (plain)
1
2
3
4
5
6
7
8
//ques-22.9
//Finding density of NaCl
clc
a=0.564*10^(-7);//edge length (in cm)
V=a^3;//volume
M=58.5;//molar mass of NaCl (in g/mol)
den=(4*M)/(6.023*V*10^23);//density
printf("The density of NaCl is %.3f g/mL.",den);