# returns Fizz if n is divisible by 3, # Buzz if n is divisible by 5, # FizzBuzz if n is divisible by 3 and 5, # n as a string otherwise def fizzbuzz(n) if =(+(mod(n 3) mod(n 5)) 0) "FizzBuzz" elif =(mod(n 3) 0) "Fizz" elif =(mod(n 5) 0) "Buzz" else string(n) end end def main() display(map(fizzbuzz ..(1 20))) end