July 07, 2022 |13.0K 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/