CJCoding With Joseph
15free / daySign inCreate account

Count The Vowels

Read one lower-case word and count how many of its characters are vowels (a, e, i, o or u), using a for loop over the characters and one if whose condition joins five == comparisons with or; then print the total in the form Vowels: <n>. Input: one line, the word, no prompt. A word with no vowels prints 0.

Expected Output:

Vowels: 5

= newline. The output ends with a newline — print one after the last line.

Hints3 available
Topics:
Strings
📥 Auto-Input:
education\n
This input is automatically fed to your program's stdin
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Ctrl+Space to expand shortcuts (pr, inp, def)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.