Skip to content

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

Notifications You must be signed in to change notification settings

domvieira/fizzbuzz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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