Fizz Buzz Kata

Your task

  • Write a program that prints one line for each number from 1 to 100
  • Usually just print the number itself.
  • For multiples of three print Fizz instead of the number
  • For the multiples of five print Buzz instead of the number
  • For numbers which are multiples of both three and five print FizzBuzz instead of the number

🥶 Code Freeze Edition 🥶

You can also do this Kata as the Lapps in the arctic north are doing it for centuries ❄️🦌
  • For multiples of three: print `Kuksa!` instead of the number
  • For the multiples of five: print `Sauna!` instead of the number
  • For numbers which are multiples of both three and five: print `Dip!` instead of the number

Starting Points

C++, C#, Clojure, D, Elixir, F#, Go, Haskell, Java, JavaScript, Kotlin, PHP, Python, ReScript, Ruby, Rust, Scala, TypeScript

Clojure, CoffeeScript, C++, C#, Erlang, Groovy, Intercal, Java, JavaScript, Lisp, PHP, Ruby, Scala

Image credits

Image by Egga. It shows an exemplary flip chart to facilitate the kata.