clc //initialisation of variables m=0.005//kg c=0.17//kcal/kg/c t1=12.4//c t2=10.2//c //CALCULATIONS du=m*c*(t1-t2)*4.2*1000 //results printf(' \n change in internal energy= % 1f J',du)