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


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

puts max