summaryrefslogtreecommitdiff
path: root/1427/CH15/EX15.5/15_5.sce
blob: b3363e02538fc8f6962e7ca4fe63ba8b35a88d81 (plain)
1
2
3
4
5
6
7
8
//ques-15.5
//Calculating equilibrium constant
clc
P=1;//pressure (in atm)
x=25;//percentage of dissociation
x=x/100;
Kp=((x^2)*P)/(1-x^2);//equilibrium constant
printf("Equilibrium constant required is %.4f atm.",Kp);