summaryrefslogtreecommitdiff
path: root/mult
blob: 478ec5e3e6f404665c98c0f4be089ff250154dc8 (plain)
1
2
3
4
5
6
7
#!/usr/bin/env ruby

factor = ARGV[0].to_f
while line = STDIN.gets
  puts line.to_f * factor
end