Skip to content

Instantly share code, notes, and snippets.

@katiesmillie
Last active August 29, 2015 14:13
Show Gist options
  • Save katiesmillie/e417972802de021b3d3a to your computer and use it in GitHub Desktop.
Save katiesmillie/e417972802de021b3d3a to your computer and use it in GitHub Desktop.
CracklePop
1.upto(100) { |i|
if i % 3 == 0 and i % 5 == 0
puts "CracklePop"
elsif i % 3 == 0
puts "Crackle"
elsif i % 5 == 0
puts "Pop"
else
puts i
end
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment