blob: 3bc3c81b686512a30f9679259d8c1e85498807ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
clc
//initialisation of variables
clear
p1= 50 //atm
p2= 100 //atm
p3= 200 //atm
p4= 400 //atm
r1= 0.98
r2= 0.97
r3= 0.98
r4= 1.07
//CALCULATIONS
f1= p1*r1
f2= p2*r1
f3= p3*r3
f4= p4*r4
//RESULTS
printf ('fugacity of nitrogen gas = %.f atm',f1)
printf ('\n fugacity of nitrogen gas = %.f atm',f2)
printf ('\n fugacity of nitrogen gas = %.f atm',f3)
printf ('\n fugacity of nitrogen gas = %.f atm',f4)
|