summaryrefslogtreecommitdiff
path: root/1652/CH8/EX8.4/8_4.sce
blob: c5a8bbdda4656d69f5c91d277cee3ef143d1123b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
clc
//Initialization of variables
T1=25+273 //K
T2=25+273 //K
//calculations
disp("Since, T2=T1, dE=0")
dE=0
w=0
q=dE+w
//results
printf("\n Work done = %d ",w)
printf("\n Heat transferred = %d ",q)
printf("\n Change in energy = %d",dE)