Last active
June 7, 2016 21:22
-
-
Save iansu/25d527575485f1c534e526f67b9c35bf to your computer and use it in GitHub Desktop.
FizzBuzz in Ruby
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in 1..100 | |
print "#{i} " | |
print "fizz" if i % 3 == 0 | |
print "buzz" if i % 5 == 0 | |
print "\n" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment