andrewalker / fizzbuzz

FizzBuzz in all the languages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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
  • Perl
  • Prolog
  • Python3
  • Rust
  • Bash
  • Java
  • Scala
  • Scheme
  • Lua
  • HTML & CSS
  • D
  • Crystal
  • Elixir
  • C#
  • VBScript
  • Julia
  • C
  • XML/XSL
  • F#
  • Erlang
  • Clojure
  • Dart
  • Kotlin
  • OCaml

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

About

FizzBuzz in all the languages


Languages

Language:Brainfuck 11.5%Language:HTML 11.2%Language:XSLT 8.6%Language:C# 5.8%Language:LOLCODE 4.7%Language:Ada 4.0%Language:Java 3.6%Language:Scala 3.4%Language:C 3.2%Language:Go 2.8%Language:OCaml 2.7%Language:Dart 2.6%Language:Prolog 2.6%Language:D 2.4%Language:Erlang 2.3%Language:Kotlin 2.2%Language:VBScript 2.1%Language:F# 2.1%Language:R 2.0%Language:Perl 2.0%Language:JavaScript 2.0%Language:Haskell 1.9%Language:Shell 1.8%Language:Clojure 1.7%Language:Rust 1.7%Language:Julia 1.7%Language:Python 1.6%Language:Elixir 1.6%Language:Lua 1.6%Language:Scheme 1.5%Language:Crystal 1.3%