summaryrefslogtreecommitdiff
path: root/1652/CH10/EX10.5/10_5.sce
blob: 05ebebac8def22aa9161caef0ddf95798c4b03c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
clc
//Initialization of variables
Ha=0
Hb=0
//calculations
H=Ha+Hb
q=H
U=0
w=q-H
//results
printf("Work done = %d",w)