aboutsummaryrefslogtreecommitdiff
path: root/challenge-003/abigail/lua/ch-2.lua
diff options
context:
space:
mode:
Diffstat (limited to 'challenge-003/abigail/lua/ch-2.lua')
-rw-r--r--challenge-003/abigail/lua/ch-2.lua12
1 files changed, 7 insertions, 5 deletions
diff --git a/challenge-003/abigail/lua/ch-2.lua b/challenge-003/abigail/lua/ch-2.lua
index 321d7d25d1..0e30b0a9c6 100644
--- a/challenge-003/abigail/lua/ch-2.lua
+++ b/challenge-003/abigail/lua/ch-2.lua
@@ -8,17 +8,19 @@
-- Run as: lua ch-2.lua < input-file
--
---
--- Create and print row 0
---
-local row = {1}
-print "1"
--
-- Iterate over the input
--
for line in io . lines () do
local rows = tonumber (line)
+
+ --
+ -- Create and print row 0
+ --
+ local row = {1}
+ print "1"
+
local r
for r = 1, rows do
--