summaryrefslogtreecommitdiff
path: root/1367/CH2/EX2.1/2_1.sce
blob: 55171e8a9d17c1af90bd5566f003b9741d80cee9 (plain)
1
2
3
4
5
6
7
8
9
10
11
//Find average atomic weight of Hydrogen.
//Exa:1.1
close;
clc;
clear;
a1=1.0078;//atomic weight of H-1
a2=2.0143;//atomic weight of H-2
p1=99.985;//% of H-1
p2=.015;//% of H-2
a=((a1*p1)+(a2*p2))/100
disp(a,"Average atomic weight of Hydrogen = ");