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

max = -1.0/0
while line = STDIN.gets
  v = line.strip.to_f 
  max = v if v > max
end
puts max