Home Forums C Programming Please Help with this Question

Viewing 4 reply threads
  • Author
    Posts
    • #2157
      Erica3453kba
      Participant

      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
      GWILouisaxwzkla
      Participant

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

    • #3481
      Erica3453kba
      Participant

      #include

    • #3482
      GWILouisaxwzkla
      Participant

      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
      Participant

      Thank you Alot..

Viewing 4 reply threads
  • The forum ‘C Programming’ is closed to new topics and replies.