mirror of https://github.com/coolaj86/fizzbuzz
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
6 lines
153 B
6 lines
153 B
#!/usr/bin/env ruby
|
|
(1..100).each do |x|
|
|
print "Fizz" if 0 == (x % 3)
|
|
print "Buzz" if 0 == (x % 5)
|
|
print "\n" if 0 == (x % 3) || 0 == (x % 5)
|
|
end
|
|
|