Skip to content

Instantly share code, notes, and snippets.

@friej715
Created December 2, 2013 01:47
Show Gist options
  • Save friej715/7743718 to your computer and use it in GitHub Desktop.
Save friej715/7743718 to your computer and use it in GitHub Desktop.
Beginner "CracklePop" in Ruby.
for i in 1..100 do
case
when i%3==0 && i%5==0
puts "CracklePop"
when i%3==0
puts "Crackle"
when i%5==0
puts "Pop"
else
puts i
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment