Created
October 7, 2014 08:35
-
-
Save icco/8e67d1f2ff9ba1af5619 to your computer and use it in GitHub Desktop.
This file contains 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
(1..100).each do |i| | |
out = "" | |
out += "Crackle" if i%3 == 0 | |
out += "Pop" if i%5 == 0 | |
out = i.to_s if out.empty? | |
print "#{out}\n" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment