//ques-18.4
//Calculating enthalpy of formation of sucrose
clc
h1=-393.5;//heat of combustion of carbon (in kJ/mol)
h2=-286.2;//heat of combustion of carbon (in kJ/mol)
h3=-5644;//heat of combustion of carbon (in kJ/mol)
H=12*h1+11*h2-h3;//enthalpy of formation (in kJ/mol)
printf("Enthalpy of formation of sucrose is %.1f kJ/mol.",H);