Created
April 3, 2024 20:10
-
-
Save blvrd/6fad5c2b4c322f845cc6817a1523b81f to your computer and use it in GitHub Desktop.
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
(1..100).to_a.each do |n| | |
if n % 3 == 0 && n % 5 == 0 | |
puts "CracklePop" | |
elsif n % 3 == 0 | |
puts "Crackle" | |
elsif n % 5 == 0 | |
puts "Pop" | |
else | |
puts n | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment