First commit of partial RosettaCode contents.
Pushing this for testing purposes. Lots of work still needed.
This commit is contained in:
commit
1e05ecd7ee
781 changed files with 9080 additions and 0 deletions
5
Task/FizzBuzz/Lua/fizzbuzz-3.lua
Normal file
5
Task/FizzBuzz/Lua/fizzbuzz-3.lua
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
word = {"Fizz", "Buzz", "FizzBuzz"}
|
||||
|
||||
for i = 1, 100 do
|
||||
print(word[(i % 3 == 0 and 1 or 0) + (i % 5 == 0 and 2 or 0)] or i)
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue