Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   Counting vowels and consonants (http://www.go4expert.com/forums/counting-vowels-consonants-t23535/)

somali.cc 9Oct2010 19:47

Counting vowels and consonants
 
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 10Oct2010 10:37

Re: Counting vowels and consonants
 
This is your 10th post and yet I see that you are submitting your queries as articles.

duckdace 10Oct2010 15:52

Re: Counting vowels and consonants
 
man isspace

virxen 10Oct2010 18:49

Re: Counting vowels and consonants
 
Quote:

Originally Posted by somali.cc (Post 73591)
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 10Oct2010 20:18

Re: Counting vowels and consonants
 
@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 11Oct2010 07:45

Re: Counting vowels and consonants
 
Quote:

Originally Posted by somali.cc (Post 73609)
@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.


All times are GMT +5.5. The time now is 20:35.