Skip to content
Ruby programme that plays Fizzbuzz in the command line.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


The fizzbuzz script allows you to play the game of Fizzbuzz.

Fizzbuzz is a counting game where numbers divisible by 3 are substituted with "fizz", numbers divisible by 5 are substituted with "buzz", and numbers divisible by 15 are substituted with "fizzbuzz".

e.g. 1, 2, fizz, 4, buzz, fizz, 7, 8, fizz, buzz, 11, fizz, 13, 14, fizzbuzz

How to use

Clone the repository:

$ git clone

Run the script:

$ cd fizzbuzz
$ ruby lib/fizzbuzz.rb

When prompted, set the starting and ending points of the range of numbers to be used.

You can’t perform that action at this time.