Content deleted Content added
|
|
else
msg = msg .. " It is cold."
end
return msg
end
-- Task 4
p.times = function(frame)
local num = tonumber( frame.args.num ) or 2
local out = num .. " times table<br>"
for i = 1, 12 do
out = out .. num .. " times " .. i .. " equals " .. i * num .. "<br>"
end
return out
end
p.mum = function(frame)
local family = {"Dad", "Mum", "Uncle Stan", "Aunty Elsie", "Brian", "Harry Potter", "Hermione Granger", "Ronald Weasely"}
local msg = ""
for i=1, #family do
msg = msg .. "Hello " .. family[i] .. "<br>"
end
return msg
|