Quiz: What Does this Loop Do with Word?
Oops, the for loop should be:
for (int i = 0; i < word.length(); i++)
not
for (int i = 0; i <= word.length(); i++)
- It counts all non-vowels
- It counts all lowercase vowels
- It counts all lowercase or uppercase vowels
- Something else