1 2 3 4 5 6 7 8 9
clc clear //Initialization of variables T1=280 //K T2=300 //K //calculations cop=T1/(T2-T1) //results printf("coefficient of performance = %.1f",cop)