Skip to content

@peterc /barf.rb secret
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
barf
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.