Skip to content

Instantly share code, notes, and snippets.

@jah2488
Created June 4, 2010 01:47
Show Gist options
  • Save jah2488/424797 to your computer and use it in GitHub Desktop.
Save jah2488/424797 to your computer and use it in GitHub Desktop.
def fizzbizz(num)
x = 1
while x < num do
if ((x%5==0) && (x%3==0))
puts "FizzBizz"
elsif (x%5==0)
puts "Bizz"
elsif (x%3==0)
puts "Fizz"
else
puts x
end
x+=1
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment