Skip to content

Instantly share code, notes, and snippets.

@Erreon
Created January 24, 2012 01:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Erreon/1667299 to your computer and use it in GitHub Desktop.
Save Erreon/1667299 to your computer and use it in GitHub Desktop.
FizzBuzz
count = 1
while count < 100
if count % 5 == 0 and count % 3 == 0
puts "FizzBuzz"
elsif count % 5 == 0
puts "Buzz"
elsif count % 3 == 0
puts "Fizz"
else
puts count
end
count += 1
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment