Counting vowels and consonants

somali.cc's Avatar, Join Date: Aug 2010
Go4Expert Member
Hello frnds,

I need ur help for the following C-Prog:

/* Count the number of vowels and comsonants in the any line given by user*/

The output is giving me the number of vowels correctly but the number of consonants is being given including the spaces.

Eg: Today is saturday

No of vowels= 6

No of consonants=11

How can I exclude the spaces from the consonant count?
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
This is your 10th post and yet I see that you are submitting your queries as articles.
duckdace's Avatar, Join Date: Oct 2010
Light Poster
man isspace
virxen's Avatar, Join Date: Nov 2009
Pro contributor
Quote:
Originally Posted by somali.cc View Post
Hello frnds,

I need ur help for the following C-Prog:

/* Count the number of vowels and comsonants in the any line given by user*/

The output is giving me the number of vowels correctly but the number of consonants is being given including the spaces.

Eg: Today is saturday

No of vowels= 6

No of consonants=11

How can I exclude the spaces from the consonant count?

send your code so far to correct it for you.
somali.cc's Avatar, Join Date: Aug 2010
Go4Expert Member
@Shabbir

Just bcoz u own this site, u feel dat u can ridicule the members ???

Instead of giving such humiliating comments if u wd have helped solving the query, dat wd ve been appreciated !!!....
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Quote:
Originally Posted by somali.cc View Post
@Shabbir

Just bcoz u own this site, u feel dat u can ridicule the members ???

Instead of giving such humiliating comments if u wd have helped solving the query, dat wd ve been appreciated !!!....
It is not about owning and not owning. If you find new people submitting articles as queries that can be acceptable but if members as experienced as you do the same I should at least let them know.