Walk each character. If it is a, e, i, o, or u (any case), add one.
You walk each letter of a word and count how many are vowels: a e i o u, upper or lower. Kodin has two: o and i. Consonants do not add to the count.
no
+1
no
+1
Each step highlights the matching C line. Program output appears only when a line that prints actually runs.
Five questions. Pick one answer each, then Check answers. The correct choice turns green.
1. Kodin has how many vowels?
o and i.
2. The loop stops when:
Terminator.
3. Uppercase A is counted because:
Both cases.
4. This walk does not need strlen first because:
s[i] != 0.
5. A consonant increments count?
Only vowels.