I have an array of characters from a to z, my task is to extract the vowels out of this array, the series that will extract the indexes of vowels goes like this, 1, 5, 9, 15, 21, 25… i am unable to create this series through loops, these numbers are actually the vowels in the array.
I don’t want Vowel Matching technique, i want the logic for the sequence given above.
If you really want to do this algorithmically, you could:
…but I’m not sure I see the point.