68. Count Vowels and Consonants
Foundation1000 ms256 MBSolved by 0%
Read one line of text and print two numbers on one line, separated by a space: how many vowels it contains, then how many consonants.
Only English letters count. Digits, spaces and punctuation are neither. Uppercase and lowercase letters count the same.
Constraints - The line has between 1 and 100000 characters. - Printable ASCII only.
Input
A single line of text.
Output
Print two integers on one line, separated by a single space, the vowel count, then the consonant count.
Inputhello
Output2 3
Noteis a single lowercase word
InputHello World
Output3 7
Notemixes cases and contains a space that must be counted as neither
Hints
Four rungs, in order. The last two open once you have submitted an attempt. A wrong one counts.
Hint 1Where to start
Hint 2The approachOpen hint 1 first. This one carries on from it.
Hint 3PseudocodeOpen hint 2 first. This one carries on from it.
Hint 4Full solutionOpen hint 3 first. This one carries on from it.