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


min = 1.0/0
while line = STDIN.gets
  v = line.to_f
  min = v if v<min
end

puts min