diff options
Diffstat (limited to 'challenge-133/abigail/ruby/ch-1.rb')
| -rw-r--r-- | challenge-133/abigail/ruby/ch-1.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/challenge-133/abigail/ruby/ch-1.rb b/challenge-133/abigail/ruby/ch-1.rb new file mode 100644 index 0000000000..efd3e4b8a0 --- /dev/null +++ b/challenge-133/abigail/ruby/ch-1.rb @@ -0,0 +1,14 @@ +#!/usr/bin/ruby + +# +# See ../README.md +# + +# +# Run as: ruby ch-1.rb < input-file +# + +ARGF . each_line do + |num| + puts ((Math . exp(Math . log(num . to_i) / 2)) . to_i) +end |
