domvieira / fizzbuzz

Simple implementation of the classic "Fizzbuzz" problem in multiple languages using Docker containers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fizzbuzz Collection

This repository contains a simple implementation of the classic "Fizzbuzz" problem in Ruby, Python, Go, PHP, and Bash using docker containers.

The Problem

Write a program that outputs the string representation of numbers from 1 to n.

But for multiples of three it should output “Fizz” instead of the number and for the multiples of five output “Buzz”. For numbers which are multiples of both three and five output “FizzBuzz”.

How to run it

  • Install Docker
  • Clone the Repo
  • Navigate to the appropriate language directory
  • build the container: docker build -t fizzbuzz .
  • run the application: docker run fizzbuzz

About

Simple implementation of the classic "Fizzbuzz" problem in multiple languages using Docker containers


Languages

Language:Dockerfile 31.8%Language:Go 17.8%Language:PHP 15.4%Language:Python 13.3%Language:Ruby 13.0%Language:Shell 8.8%