#K47737. Count Vowels in Strings
Count Vowels in Strings
Count Vowels in Strings
You are given a set of strings. Your task is to compute the number of vowels in each string. The vowels considered are \(a, e, i, o, u\). For each string, output the string followed by a colon, a space, and the count of vowels in that string.
For example, if the input string is hello, the output should be hello: 2 since there are two vowels ('e' and 'o').
Make sure your solution reads from standard input and writes to standard output.
inputFormat
The input consists of multiple lines. The first line contains a single integer (n) denoting the number of strings. Each of the following (n) lines contains one string.
outputFormat
Output (n) lines. Each line should display the original string, followed by a colon, a space, and the number of vowels in that string.## sample
3
hello
world
programming
hello: 2
world: 1
programming: 3
</p>