blob: 7bf9bdfdf7f6024e1e86bfb3bfcc4360644dad0d (
plain)
1
2
3
4
5
6
7
8
9
10
|
clc
clear
//Initialization of variables
disp("From table 2 of keenan and keynes,")
t1=439.60 //F
u1=1118.4 //Btu/lb
//calculations
p2=380 //psia
//results
printf("The state of steam is saturated at %d psia and %.2f F",p2,t1)
|