summaryrefslogtreecommitdiff
path: root/409/CH9/EX9.1/Example9_1.sce
blob: af6eb7554a8634bbf430cc98f6a02411b34dd7fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
clear;
clc;
// Example 9.1
printf('Example 9.1\n\n');
// Page no. 228
// Solution

// Given 
//Main eqn. C6H12O6 + aO2 ---> bCO2 + cH2O
// By carbon balance
b = 6 ;

//By hydrogen balance
c = 6;

//Balancing oxygen in reaction
a = (c*1+b*2-6)/2;
printf('Value of a is  %i\n',a);
printf('Value of b is  %i\n',b);
printf('Value of c is  %i\n',c);