Single File Programming Question
Problem Statement
Bob is working on a text analysis tool and needs your help in developing a program that classifies characters in a given string. The program should count the number of vowels, consonants, digits, and special characters in the input string.
Input format :
The input consists of a String, representing the text in which the counts of vowels, consonants, digits, and special characters will be determined.
Output format :
The first line of output prints "Vowels: " followed by an integer representing the count of vowels in the input string.
The second line prints "Consonants: " followed by an integer representing the count of consonants in the input string.
The third line prints "Digits: " followed by an integer representing the count of digits in the input string.
The fourth line prints "Special Characters: " followed by an integer representing the count of special characters in the input string.
Refer to the sample output for formatting specifications.
Code constraints :
The length of the input string will not exceed 150 characters.
Sample test cases :
Input 1 :
123Hello@@
Output 1 :
Vowels: 2 Consonants: 3 Digits: 3 Special Characters: 2
Input 2 :
aliceinwonderland48
Output 2 :
Vowels: 7 Consonants: 10 Digits: 2 Special Characters: 0
Input 3 :
AeuNn123@
Output 3 :
Vowels: 3 Consonants: 2 Digits: 3 Special Characters: 1