New course! Every coder should learn Generative AI!
Try a free lesson0
How to Find vowels or not using case in ruby ?
vowels or not in ruby
1 Answer
+ 1
Like that?
char_taken = 'e'
case char_taken
when 'a', 'e', 'i', 'o', 'u', 'y'
puts "Vowel"
end
# Digged out ...