summaryrefslogtreecommitdiff
path: root/1922/CH4/EX4.11/4_11.sce
blob: 28622551c138cc2d2021ac8522e178671597fb71 (plain)
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)