fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.
Fuzion
•
Idioms
•
Idiom # 272: Play FizzBuzz
Idiom # 272: Play FizzBuzz
See
programming-idioms.org
:
Code
for i in 1..100 do if (i % 15) = 0 then say "FizzBuzz" else if (i % 3) = 0 then say "Fizz" else if (i % 5) = 0 then say "Buzz" else say i
What are effects?
Running example
ex272 is for i in 1..100 do if (i % 15) = 0 then say "FizzBuzz" else if (i % 3) = 0 then say "Fizz" else if (i % 5) = 0 then say "Buzz" else say i
What are effects?
last changed: 2024-07-01
next: NYI: Idiom # 273: Check if folder is empty