Practice
Count Vowels
MEDIUMString Processing
Read a word. Output the number of vowels (a, e, i, o, u) it contains. Ignore case.
Input: A single word. Output: The count of vowels.
Example:
Input: hello
Output: 2
Premium is coming soon. All grading features are currently unlocked.
Sample Test Cases
Test 1: hello has 2 vowels
Inputs: hello
Expected: 2
Test 2: programming has 3 vowels
Inputs: programming
Expected: 3
Test 3: No vowels
Inputs: rhythm
Expected: 0
Ctrl+Enter
Press Ctrl+Enter to run your code
or Ctrl+Shift+Enter to grade