diff options
Diffstat (limited to 'challenge-042/stuart-little/lua/ch-1.lua')
| -rwxr-xr-x | challenge-042/stuart-little/lua/ch-1.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/challenge-042/stuart-little/lua/ch-1.lua b/challenge-042/stuart-little/lua/ch-1.lua new file mode 100755 index 0000000000..9fe6a5c78c --- /dev/null +++ b/challenge-042/stuart-little/lua/ch-1.lua @@ -0,0 +1,7 @@ +#!/usr/bin/env lua + +-- run <script> <largest decimal number to convert; defaults to 50> + +for n=0,(#arg>0 and tonumber(arg[1]) or 50) do + print(("Decimal: %d Octal: %o"):format(n,n)) +end |
