Fizz Buzz Kata

Your task

  • Write a program that prints one line for each number from 1 to 100
  • 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

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.