34. Count Vowels and Consonants
EasyString
Count the vowels (a, e, i, o, u, either case) and consonants (other letters) in a line of text.
Input format
A single line of text.
Output format
vowels consonants
Example 1
Input
Hello World
Output
3 7
Example 2
Input
AEIOU xyz
Output
5 3
Constraints
1 ≤ length ≤ 10⁵
Read input from standard input and print the answer to standard output. Your code is judged against 4 test cases, most of them hidden.
Loading the MyLoginn IDE…