clc //initialisation of variables H= -94.052 //kcal H1= -68.317 //kcal H2= -780.98 //kcal //CALCULATIONS H3= 6*H+3*H1-H2 //RESULTS printf (' Heat of formation = %.3f kcal',H3)