blob: 3436422e3da7ba79d5caf29c5b69ee7f292c5403 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
clc
//initialization of varaibles
s=1.6315 //B/lb R
//calculations
disp("From table 1 ")
h=1180.6 //B/lb
t=302.92 //F
p=70 //psia
//results
printf("Pressure = %d psia",p)
printf("\n Temperature = %.2f F",t)
printf("\n Enthalpy = %.1f B/lb",h)
|