[2023 OUCC Round 1] Counting Letters
该比赛已结束,您无法在比赛模式下递交该题目。您可以点击“在题库中打开”以普通模式查看和递交本题。
A program is required to count how many vowels and consonants are used in a given sentence.
Task:
Write a program that counts the total number of vowels and consonants used in a sentence. Output the number of vowels then the number of consonants, separated by a space.
Constraints:
[Note: you do not need to check constraints in your code for this competition - they are just for information about the range of test data values.]
- Sentences will only contain upper and lowercase letters, spaces and a full-stop.
Input format:
- A string.
Output format:
- Two integers separated by a space.
Example:
I love programming.
6 10