diff options
Diffstat (limited to 'max')
-rwxr-xr-x | max | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,9 +1,11 @@ #!/usr/bin/env ruby + max = -1.0/0 while line = STDIN.gets - v = line.strip.to_f + v = line.to_f max = v if v > max end + puts max |