Count the vowels
Read a line of text and print how many vowels (a e i o u, upper or lower case) it contains.
Input
Hello World
Expected output
3
Input
AEIOU
Expected output
5
Show a hint
Lower-case the text first so you only have to check five letters.
Show a solution
Loading the editor…
Run the tests to check your solution.