diff options
Diffstat (limited to 'challenge-133/abigail/lua/ch-1.lua')
| -rw-r--r-- | challenge-133/abigail/lua/ch-1.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/challenge-133/abigail/lua/ch-1.lua b/challenge-133/abigail/lua/ch-1.lua new file mode 100644 index 0000000000..f846c84e91 --- /dev/null +++ b/challenge-133/abigail/lua/ch-1.lua @@ -0,0 +1,13 @@ +#!/opt/local/bin/lua + +-- +-- See ../README.md +-- + +-- +-- Run as: lua ch-1.lua < input-file +-- + +for num in io . lines () do + print (math . floor (math . exp (math . log (tonumber (num)) / 2))) +end |
