✕
StringsCoding problems
Strings: coding problems
Write a program that reads the input and prints the answer. Run checks it against every test, including hidden ones.
0 of 8 solved
A writing teacher wants to know how many vowels a student used in one sentence. The vowels are
a,e,i,o,u, in either upper or lower case. Every other character (letters, spaces, punctuation) is ignored.Read the whole line, even if it has spaces, and count the vowels.
**Constraints:** the line has at most 100,000 characters. The line may be empty.
Input. One line of text. It may contain spaces and punctuation, and it may be empty.
Output. One integer: the number of vowels in the line.
Example 1 input
Programming is fun
Output
5
Example 2 input
Rhythm
Output
0