admin@onlinelearningcenter.in (+91) 7 999 01 02 03

Count Number of Vowels and Consonants in a given String

Suraj Ghimire
42 Posts

WAP to calculate number of vowels and consonents in a given string.

Vowels: A,E,I,O,U are called as Vowels and rest are consonents

Eg input= "Hello World"

     Total Vowels:3

     Total Consonants: 10

Dont count spaces and other symbols, they are neither vowels nor consonents.

 

Published By : Suraj Ghimire
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.

Comments

Jquery Comments Plugin