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
13
Task/FizzBuzz/Lua/fizzbuzz-2.lua
Normal file
13
Task/FizzBuzz/Lua/fizzbuzz-2.lua
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
for i = 1, 100 do
|
||||
output = ""
|
||||
if i % 3 == 0 then
|
||||
output = output.."Fizz"
|
||||
end
|
||||
if i % 5 == 0 then
|
||||
output = output.."Buzz"
|
||||
end
|
||||
if(output == "") then
|
||||
output = output..i
|
||||
end
|
||||
print(output)
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue