blob: f134b61c75e4976f54d63ac8f1c5840a8d233abf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
clc
//initialisation of variables
clear
M2= 92 //gms
M1= 78 //gms
pb= 118.2 //mm
pt= 36.7 //mm
//CALCULATIONS
n1= M2/(M1+M2)
n2= 1-n1
p1= n1*pb
p2= n2*pt
w= p1*M1/(p2*M2)
//RESULTS
printf ('partial pressure of benzene = %.f mm',p1)
printf ('\n partial pressure of toulene = %.1f mm',p2)
printf ('\n weight proportions = %.2f ',w)
|