Counting vowels and consonants
Rust
Easy
strings
Task «Counting vowels and consonants»
Write a program that reads a string of text and counts the number of vowels and consonants in the Russian alphabet. The string may contain spaces and punctuation marks. Letter case is not considered (uppercase and lowercase are counted the same). Vowels: а, е, ё, и, о, у, ы, э, ю, я. The remaining letters of the Russian alphabet are consonants. Output two numbers: the number of vowels and the number of consonants.
Input Format
One line containing arbitrary text. The length of the line does not exceed 1000 characters.
Output Format
Two integers separated by a space: the number of vowels and the number of consonants.
main.rs