Skip to content

Instantly share code, notes, and snippets.

View adtaylor's full-sized avatar

Ad Taylor adtaylor

  • Birmingham, England
View GitHub Profile
@adtaylor
adtaylor / fizz_buzz.rb
Last active December 21, 2015 01:49 — forked from luxerama/fizz_buzz.rb
100.times do |i|
case
when ((i % 3) == 0 and (i % 3) == 0)
puts "FizzBuzz"
when i % 3 == 0
puts "Fizz"
when i % 5 == 0
puts "Buzz"
else
puts i