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

//Variable declaration
rho=6.23;       //density(gm/cc)
M=60;         //molecular weight
N=6.023*10^23;      //avagadro number
n=4;     //number of atoms

//Calculations
a=(n*M/(rho*N))^(1/3);      //lattice constant(cm)
r=a*sqrt(2)*10^8/4;          //radius of atom(angstrom)

//Result
printf("\n radius of atom is %0.3f angstrom",r)