Nowy kurs! Każdy programista powinien nauczyć się Generative AI!
Wypróbuj darmową lekcję0
What is the program to find the entered character is vowel or not?
2 odpowiedzi
+ 2
check if it is in the string below (you can use whichever method you like, but I think dichotomy is the most suitable one)
"aeiouyAEIOUY"
+ 1
Store all vowels in an array.
Using a for loop compare entered input with each element in array.
If same display that its a vowel