A Collection of Code Snippets in as Many Programming Languages as Possible
This project is maintained by TheRenegadeCoder
Welcome to the Baklava in Terra page! Here, you'll find the source code for this program as well as a description of how the program works.
local function strRepeat(n, s)
local r = ""
for i = 1, n do
r = r .. s
end
return r
end
local function baklava()
for i = -10, 10 do
local numSpaces = i
if i < 0 then
numSpaces = -numSpaces
end
print(strRepeat(numSpaces, " ") .. strRepeat(21 - 2 * numSpaces, "*"))
end
end
baklava()
Baklava in Terra was written by:
If you see anything you'd like to change or update, please consider contributing.
No 'How to Implement the Solution' section available. Please consider contributing.
No 'How to Run the Solution' section available. Please consider contributing.