blob: d7ac659ad74e00ceddd0d9db5674a162a751e730 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
clc
//initialisation of variables
clear
dH= -1228.2 //kcal
n1= 10
n2= 4
dH1= -94.05 //kcal
dH2= -68.32 //kcal
//CALCULATIONS
x= n1*dH1+n2*dH2-dH
//RESULTS
printf ('Heat of formation = %.1f kcal',x)
|