blob: cf94778566bd89e77fd472cc6c66208d9fc0ea0d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
clc
clear
//INPUT DATA
p1=780;//pressure of gas in mm
p2=760;//pressure of gas in mm
v1=15;//volume of gas in m^3
T1=288;//Temperature in k
T2=273;//Temperature in k
//CALCULATIONS
v2=(p1*v1*(T2/T1))/p2;//volume of gas in m^3
//OUTPUT
printf('Gas consumption at NTP is %3.3f m^3 ',v2)
|