Vowel and consonant problem help

I tried this question but it shows WA
please help (in c++)
link:-
https://practice.geeksforgeeks.org/problems/consonants-and-vowels-check/1/?track=module-2-arrays-and-strings&batchId=113

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

Thanks
it works.