Count Vowels
InterviewTime limit1sMemory limit256 MB
Count the vowels a, e, i, o, and u in each given lowercase word and print the result in the required sentence.
- Level
Easy1 of 10
- Topics
- String
- Solved
- No attempts yet
Problem
Gru teaches minions English. Kevin wants help counting vowels in words to win an ice cream contest. Given lowercase words, count vowels a, e, i, o, and u only (y is not a vowel here).
Input
First line: number of test cases (). Each following line is one lowercase word.
Output
For each word , print The number of vowels in w is k.