Vowel and consonant problem help

I tried this question but it shows WA
please help (in c++)

You just need the count the number of vowels (a,e,i,o,u) and consonant.
This is very easy. But, beware of spaces. As spaces are neither vowel nor consonant.

i did same but some test cases failed showing WA

Have a Look at my code.

1 Like

it works.