Created
July 19, 2016 19:20
-
-
Save jkirkpatrick24/c99ba15e4df892800018f1040f54c6b3 to your computer and use it in GitHub Desktop.
Revisions
-
jkirkpatrick24 created this gist
Jul 19, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ def fizzbuzz(x,y) number = x..y number.each do |i| if i % 15 == 0 puts "FizzBuzz" elsif i % 3 == 0 puts "Fizz" elsif i %5 == 0 puts "Buzz" else puts i end end end fizzbuzz(1,15)