• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests
July 07, 2022 |12.5K Views
Program to count vowels, consonant, digits and special characters in string
  Share  2 Likes
Description
Discussion

Given a string and the task is to count vowels, consonant, digits and special character in string. Special character also contains the white space.
Examples: 
 

Input : str = "geeks for geeks121"
Output : Vowels: 5
        Consonant: 8
        Digit: 3
        Special Character: 2


Program to count vowels, consonant, digits and special characters in string : https://www.geeksforgeeks.org/program-count-vowels-consonant-digits-special-characters-string/