Skip to content

Latest commit

 

History

History
28 lines (25 loc) · 243 Bytes

README.md

File metadata and controls

28 lines (25 loc) · 243 Bytes

FizzBuzz

I heard about this on the Ruby Rogues...

usage:

[1] pry(main)> require './fizzbuzz.rb'
true
[2] pry(main)> (1..15).each { |i| puts i }
1
2
Fizz
4
Buzz
Fizz
7
8
Fizz
Buzz
11
Fizz
13
14
FizzBuzz
1..15
[Fizz] pry(main)>