//example 5.31

clear;
clc;

//Given:
c=1;//no. of components
p=1;//no. of phases

//To find the values of degrees of freedom
F=c-p+2;//Degrees of freedom
printf("Degrees of freedom is %f\n\n",F);
disp("Degrees of freedom 2 means both the pressure and temperature can be varied independently");