Please Help with this Question

Home Forums C Programming Please Help with this Question

This topic contains 4 replies, has 2 voices, and was last updated by  Erica3453kba 10 years, 1 month ago.

  • Author
    Posts
  • #2157

    Erica3453kba
    Member

    a. If noun ends in “y,” remove the “y” and add “ies.”
    b. If noun ends in “s,” “ch,” or “sh,” add “es.”
    c. In all other cases, just add “s.”
    Print each noun and its plural.

    In C++
    Thanks~

  • #3480

    What type of input are you using ( from the console , a file ) ??

  • #3481

    Erica3453kba
    Member

    #include

  • #3482

    Not quite sure what you needed so I wrote this to read words from the keyboard into a character array. I haven’t tested this code much and the logic could probably be simplified….

    output:

  • #3483

    Erica3453kba
    Member

    Thank you Alot..

You must be logged in to reply to this topic.

Share
Tweet
Share
Pin
+1