Skip to content

Instantly share code, notes, and snippets.

@sasamijp
Last active December 18, 2015 07:29
Show Gist options
  • Save sasamijp/5747107 to your computer and use it in GitHub Desktop.
Save sasamijp/5747107 to your computer and use it in GitHub Desktop.
やったねたえちゃん
for num in 1..gets.to_i do
print "Fizz" if num % 3 == 0
print "Buzz" if num % 5 == 0
print num if num % 3 != 0 and num % 5 != 0
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment