C-PROM 2014 (PROBLEM 1 :CONSONANTS & VOWELS)



PROBLEM 1 : CONSONANTS & VOWELS


A word consists of consonants and vowels. Do you realized that some words have more vowels than the consonants. Your tasks is to enter a word and count number of vowels and consonants in the word.

Input
The first line of the input contains an integer N (1 ≤ N ≤ 5), the number of test cases. Following the first line are the test cases. Each line of a test case contains a string data.

The input must be read from standard input.

Output
The output of the program should display the total of vowels and consonants in the word.

The output must be written to standard output.

Sample Input
Sample Output

3
sequoia
rhythm
fuyooo




5 2
0 6
4 2














____________________________________________________________________________

Problem Setter : Jamal Othman, UiTM Pulau Pinang


Share this

Related Posts

Previous
Next Post »