blob: b65aac605d47ec15b639677fe65c5b593a47ffb0 (
plain)
1
2
3
4
5
6
7
8
9
|
//Example 10_7
clc();
clear;
//To find out the final pressure in the drum
p1=1 //Units in atm
t2=333 //units in K
t1=293 //units in K
p2=p1*(t2/t1) //units in atm
printf("The final pressure in the drum is P2=%.2f atm",p2)
|