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,375
    Likes Received:
    388
    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 Active Member

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

    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,375
    Likes Received:
    388
    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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice