-
-
Save anonymous/9bc9804f254871f37a32 to your computer and use it in GitHub Desktop.
This file contains 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 characters
numbers = (1..100) | |
numbers.each do |n| | |
if n % 3 == 0 | |
n = puts "Fizz" | |
elsif n % 5 == 0 | |
n = puts "Buzz" | |
else | |
n | |
end | |
puts n | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment