One lowercase one uppercase one numeric and one special character

Count Uppercase, Lowercase, special character and numeric values

Given a string, write a program to count the occurrence of Lowercase characters, Uppercase characters, Special characters and Numeric values.
Examples:
Input : #[email protected]
Output :
Upper case letters : 5
Lower case letters : 8
Numbers : 4
Special Characters : 2
Input : *GeEkS4GeEkS*
Output :
Upper case letters : 6
Lower case letters : 4
Numbers : 1
Special Characters : 2

Leave a Comment