peterc / barf.rb secret
Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

barf

View barf.rb
1 2 3 4 5 6 7 8 9
1.upto(100) do |i|
puts(if b = i * 8 / 5 & 7 and (i + 2) * 6 / 9 & 1 == 1
b == 0 ? "FizzBuzz" : "Fizz"
elsif b == 0
"Buzz"
else
i
end)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.