pocketlang/tests/examples/fizzbuzz.pk
Thakee Nathees 88c45cccac function and else if keywords are changed.
- `func` keyword has change to `function`.
- `elsif` changed to `else if`
2022-04-17 07:33:40 +05:30

10 lines
165 B
Plaintext

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