Counting vowels and consonants

Go4Expert Member
9Oct2010,19:47   #1
somali.cc's Avatar
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?
Go4Expert Founder
10Oct2010,10:37   #2
shabbir's Avatar
This is your 10th post and yet I see that you are submitting your queries as articles.
Light Poster
10Oct2010,15:52   #3
duckdace's Avatar
man isspace
Pro contributor
10Oct2010,18:49   #4
virxen's Avatar
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.
Go4Expert Member
10Oct2010,20:18   #5
somali.cc's Avatar
@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 !!!....
Go4Expert Founder
11Oct2010,07:45   #6
shabbir's Avatar
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.