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)