FizzBuzz
Prints each number from a range on a new line
For each multiple of 3, print "Fizz" instead of the number.
For each multiple of 5, print "Buzz" instead of the number.
For numbers which are multiples of both 3 and 5, print "FizzBuzz" instead of the number.
Installation
Add this line to your application's Gemfile:
gem 'fizbuzz_mf'
And then execute:
$ bundle
Or install it yourself as:
$ gem install fizzbuzz_mf
Usage
Call it as Class Method with a ranges as arguments
FizzBuzz.fizzbuzz(lower_limit, upper_limit)
Version
1.0.0 - Base Version
1.0.1 - Zero value and Negative value errors fixed
1.0.2 - Optimized Error Handling
Author
Mohammed Ferbin Karumannil
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request