Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
I wrote FizzBuzz in Ruby
for num in 1..30 do
if num % 15 == 0
puts "FizzBuzz"
elsif num % 5 == 0
puts "Buzz"
elsif num % 3 == 0
puts "Fizz"
puts num
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment