pocketlang/test/examples/fizzbuzz.pk

10 lines
159 B
Plaintext
Raw Normal View History

for i in 1..100
if i%3 == 0 and i%5 == 0 then print('fizzbuzz')
elif i%3 == 0 then print('fizz')
elif i%5 == 0 then print('buzz')
else print(i)
end
end