clc //initialisations h=50//m g=9.8//m/sec2 l=1000 j=4.2//j/cal //calculations q=h*g/j t=q/l //results printf(' difference in temperature of water= % 1f C',t)