1 2 3 4 5 6 7 8 9
clc //initialisation of variables T1=1100//k T3=200//k r=0.5 //CALCULATIONS T=(T1-(T3*r))/(1+r) //results printf(' \n value of T= % 1f k',T)