clc //initialisation p1=1 p2=0.8 t1=25//c t2=10//c p=0.4 t3=61//c t4=12//c //calculations p1=p*(t3-t4) m=(t1-t2) c=m/p1 //results printf(' specific heat of liquid= % 1f cal/gm*c',c)