1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Counting vowels and consonants

Discussion in 'C' started by somali.cc, Oct 9, 2010.

  1. somali.cc

    somali.cc New Member

    Joined:
    Aug 23, 2010
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    0
    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?
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,293
    Likes Received:
    365
    Trophy Points:
    83
    This is your 10th post and yet I see that you are submitting your queries as articles.
     
  3. duckdace

    duckdace New Member

    Joined:
    Oct 9, 2010
    Messages:
    9
    Likes Received:
    1
    Trophy Points:
    0
    man isspace
     
  4. virxen

    virxen New Member

    Joined:
    Nov 24, 2009
    Messages:
    387
    Likes Received:
    90
    Trophy Points:
    0

    send your code so far to correct it for you.
     
  5. somali.cc

    somali.cc New Member

    Joined:
    Aug 23, 2010
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    0
    @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 !!!....
     
  6. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,293
    Likes Received:
    365
    Trophy Points:
    83
    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.
     

Share This Page