1 2 3 4 5 6 7 8 9
clc //initialisation of variables T2=500//k T1=1000//k //CALCULATIONS r=1-(T2/T1) x=T1/r //results printf(' \n value of x= % 1f k',x)