Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Re: file & split
Ruy Diaz
5/1/2007 10:44:00 PM
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
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Re: file & split
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password