Let's learn about CPP strings here. CPP strings are quite different from their C counterpart and have various methods that can be invoked on them. We hope you've read the articles.
You are given a string s containing only lowercase letters. You need to count the number of vowels and the number of consonants.
The first line of input contains T, denoting the number of testcases. T testcases follow. For each testcase there is only one line of input containing s.
For each testcase, in a new line, print the output.
Since this is a function problem, you don't need to take any input. Just complete the function checkString(string s) that take s as input and produces output.
1 <= T <= 100
1 <= |s| <= 100
the quick brown fox jumps over the lazy dog
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.