RosettaCodeData/Task/FizzBuzz/Moonscript/fizzbuzz.moon

5 lines
140 B
Text
Raw Permalink Normal View History

2017-09-23 10:01:46 +02:00
for i = 1,100
print ((a) -> a == "" and i or a) table.concat {
i % 3 == 0 and "Fizz" or ""
i % 5 == 0 and "Buzz" or ""}