Skip to content

Commit

Permalink
div
Browse files Browse the repository at this point in the history
  • Loading branch information
pks committed Jan 25, 2015
1 parent 81f6bed commit 33a2484
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions div
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env ruby

factor = ARGV[0].to_f
exit if factor==0
while line = STDIN.gets
puts line.to_f / factor
end

0 comments on commit 33a2484

Please sign in to comment.