diff options
-rwxr-xr-x | pot | 8 | ||||
-rwxr-xr-x | sqrt | 6 |
2 files changed, 14 insertions, 0 deletions
@@ -0,0 +1,8 @@ +#!/usr/bin/env ruby + + +pow = ARGV[0].to_f +while line = STDIN.gets + puts line.to_f**pow +end + @@ -0,0 +1,6 @@ +#!/usr/bin/env ruby + +while line = STDIN.gets + puts Math.sqrt line.to_f +end + |