blob: 9a78296cbd9adc8524b83c2a9d961991659f0ab0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
clc
//initialisation of variables
clear
n1= 0.25 //mole
n2= 0.75 //mole
l= 0.0832 //lit
T= 50 //C
p1= 404 //atm
p2= 390 //atm
//CALCULATIONS
P= n1*p1+n2*p2
//RESULTS
printf ('Total Pressure = %.f atm',P)
|