clc //initialization of variables DHH=42 //kcal/mol //calculations DHHp=0.5*(DHH) //results printf("Exchange energy = %.1f kcal/mol",DHHp)