FizzBuzz in all the languages
Clone or download
Latest commit 0d1fe2e Jan 1, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Fizz buzz Dec 29, 2018
README.md Add Elixir Jan 1, 2019
fizzbuzz.ada Fizz buzz Dec 29, 2018
fizzbuzz.bf Fizz buzz Dec 29, 2018
fizzbuzz.cr add fizzbuzz in CRYSTAL Dec 31, 2018
fizzbuzz.d Add D Dec 31, 2018
fizzbuzz.ex Add Elixir Jan 1, 2019
fizzbuzz.go Add go Dec 30, 2018
fizzbuzz.hs Fizz buzz Dec 29, 2018
fizzbuzz.html Create fizzbuzz.html Dec 31, 2018
fizzbuzz.java Add Java Dec 30, 2018
fizzbuzz.js Fizz buzz Dec 29, 2018
fizzbuzz.lol Adding lolcode Dec 30, 2018
fizzbuzz.lua Add Lua Dec 30, 2018
fizzbuzz.pro Adding prolog Dec 30, 2018
fizzbuzz.py Fizz buzz Dec 29, 2018
fizzbuzz.rs Improving rust example Dec 31, 2018
fizzbuzz.scala Add Scala Dec 30, 2018
fizzbuzz.sh Fix the things found by shfmt Dec 31, 2018

README.md

FizzBuzz around the world in all languages

Overview

You've most likely heard of FizzBuzz, the very simple programming challenge used in interviews to see if someone can code or not. But if you haven't, here it is.

Write a short program that prints each number from 1 to 100 on a new line. For each multiple of 3, print "Fizz" instead of the number. For each multiple of 5, print "Buzz" instead of the number. For numbers which are multiples of both 3 and 5, print "FizzBuzz" instead of the number.

This repo is about implementing FizzBuzz in as many languages as possible.

Languages

  • Ada
  • Brainfuck (partial implementation)
  • Go
  • Haskell
  • JavaScript (node)
  • LOLCODE
  • Prolog
  • Python3
  • Rust
  • Bash
  • Java
  • Scala
  • Lua
  • HTML & CSS
  • D
  • Crystal
  • Elixir

Contributing

If you feel like wasting an afternoon learning an esoteric language (or even a normal one), or writing some tests, please submit a PR.

License

MIT