Skip to content

Instantly share code, notes, and snippets.

Created January 20, 2016 22:58
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 anonymous/4294bc9164446f9a5f7b to your computer and use it in GitHub Desktop.
Save anonymous/4294bc9164446f9a5f7b to your computer and use it in GitHub Desktop.
vowel_end_count = 0
array.each do |name|
if name. == "a" || "e" || "i" || "o" || "u"
vowel_end_count += 1
end
end
puts "There are #{vowel_end_count} names that end with a vowel"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment