Skip to content

Instantly share code, notes, and snippets.

@imranismail
Created December 9, 2014 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imranismail/81da5e84306f7165d134 to your computer and use it in GitHub Desktop.
Save imranismail/81da5e84306f7165d134 to your computer and use it in GitHub Desktop.
Anonymooooose Llama
def anonymous_llama(min, max)
for i in min..max
if (i % 3 == 0)
puts "Anonymous"
else
puts i
end
if (i % 5 == 0)
puts "Llama"
end
if (i % 3 == 0 && i % 5 == 0)
puts "AnonymousLlama"
end
end
end
anonymous_llama(1, 100)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment