summaryrefslogtreecommitdiff
path: root/3831/CH15/EX15.2/Ex15_2.sce
blob: 8daa725937868f29476465df323f52824879b56b (plain)
1
2
3
4
5
6
7
8
9
10
// Example 15_2
clc;funcprot(0);
// Given data
CH_4=1.00;// kgmole of methane
C_3H_8=3.00;// kgmoles of propane

// Solution
n=1+(3*(3));// Carbon balance
m=4+(3*(8));// Hydrogen balance
printf("\nThe hydrocarbon fuel model for this mixture is C_%2.0fH_%2.0f.",n,m);