clc //initialisation of variables l20=0.1//m l1=0.0999//m s=0.000011//1/c t1=20 //CALCULATIONS t=((l1-l20)/(l20*s))+20 //results printf(' temperature the rod must be reduced is= % 1f C',t)