summaryrefslogtreecommitdiff
path: root/sum
blob: dac72d3f33fa9692e0e7f61fe4690127e988065a (plain)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env ruby


sum = 0.0
while line = STDIN.gets
  sum += line.to_f
end

puts sum