summaryrefslogtreecommitdiff
path: root/1427/CH24/EX24.5/24_5.sce
blob: 61e9fbf923d64ca1e3b1ac7a6af48ab179b30d74 (plain)
1
2
3
4
5
6
7
8
9
//ques-24.5
//Calculating Henrys constant
clc
n=2*10^-2/28;//moles of nitrogen
N=1000/18;//moles of water
X2=n/(n+N);
p2=1;//pressure (in atm)
KH=p2/X2;
printf("The value of Henrys constant is %d atm.",KH);