Oops, forgot to include the +=
i = 0
while line=file.gets
tab=line.split
c8+=tab[7].to_f
i = i + 1
end
puts c8 / i
Oops, forgot to include the +=
i = 0
while line=file.gets
tab=line.split
c8+=tab[7].to_f
i = i + 1
end
puts c8 / i