In this challenge, we practice looping over the characters of string. Check out the attached tutorial for more details.
Complete the vowelsAndConsonants function in the editor below.
vowelsAndConsonants has the following parameters:
There is one line of input with the string .
First, print each vowel in on a new line (in the same order as they appeared in ). Second, print each consonant (i.e., non-vowel) in on a new line (in the same order as they appeared in ).
Sample Input 0
Sample Output 0
Observe the following: