Loading environment...
Your friend Elliot is terrible at spelling and wants to know how many vowels are in his homework notes. Vowels are the letters A, E, I, O, U (both uppercase and lowercase). It's up to you, his programmer friend, to count them!
Read a single line of text and output the total number of vowels in it.
A single line containing a string .
The string consists of letters (A-Z, a-z), spaces, and punctuation.
Constraints:
Output a single integer: the number of vowels (A, E, I, O, U, a, e, i, o, u) in the string.
Explanation: Vowels are: 'e', 'o', 'E', 'i'. 'o' appears twice.
No comments yet. Be the first to comment!