Think In Geek

In geek we trust

fizzbuzz

A Ruby implementation of the FizzBuzz test using the Enumerator class

Some days ago I learnt about The FizzBuzz Test and did a simple implementation in Ruby. The FizzBuzz test is a simple algorithm that is supposed to do the following: For each number from 1 to 100: If the number is divisible by 3, print “Fizz” If the number is divisible by 5, print “Buzz” […]

, , ,