summaryrefslogtreecommitdiff
path: root/1427/CH15/EX15.1/15_1.sce
blob: efe4587995a49ee06a761494a904ecef21e5a1ad (plain)
1
2
3
4
5
6
7
8
9
//ques-15.1
//Calculating equilibrium constant for a reaction
clc
a=15;//moles of H2
b=5.2;//moles of I2
c=10;//moles of HI
x=c/2;
Kc=(4*x^2)/((a-x)*(b-x));//equilibrium constant
printf("Equilibrium constant required is %.0f.",Kc);