Consonants and Vowels check
Submissions: 4093   Accuracy:

33.29%

  Difficulty: Easy   Marks: 2
Associated Course(s):   Fork CPP

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.

  • If vowel count > consonant count then print - “Yes”(without quotes).
  • If vowel count < consonant count then print - “No”(without quotes).
  • If vowel count = consonant count then print - “Same”(without quotes).

Input Format:
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.

Output Format:
For each testcase, in a new line, print the output.

Your Task:
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.

Constraints:
1 <= T <= 100
1 <= |s| <= 100

Examples:
Input:

2
the quick brown fox jumps over the lazy dog
aaaaaa
Output:
No
Yes

** For More Input/Output Examples Use 'Expected Output' option **

Author: Soul_xhacker


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.



Need help with your code? Please use ide.geeksforgeeks.org, generate link and share the link here.

to report an issue on this page.