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

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