Counting vowels in a string
C++
Easy
strings
Task «Counting vowels in a string»
Write a program that reads a string of text and counts the number of vowel letters (a, e, i, o, u) in it. The case of the letters is ignored. The length of the string does not exceed 100 characters. Output a single integer.
Input Format
One line of text consisting of Latin letters and spaces.
Output Format
One integer — the number of vowel letters.
Examples
Example 1
INPUT
Hello World
OUTPUT
3
Example 2
INPUT
Programming
OUTPUT
3
main.cpp