blob: 05da923688e0486eb9d10efc5de064597d5724ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
clc
clear
//Initialization of variables
N2=78.1
M=29
co2=8.7
co=8.9
x4=0.3
x5=3.7
x6=14.7
//calculations
O2=N2/3.76
Z=(co2+co+x4)/8
AF=(O2+N2)*M/(Z*113)
//results
printf("Air fuel ratio = %.1f lbm air/lbm fuel",AF)
|