Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (15 sloc) 381 Bytes
title difficulty
FizzBuzz
easy

Problem

Given an input return:

  • "Fizz" if number is divisible by three
  • "Buzz" if number is divisible by five
  • "FizzBuzz" if number is divisible by both
  • Itself if number not divisible by both

Solving

To check if you solved this challenge you need to make all tests pass, to run tests you can:

ruby fizzbuzz_test.rb