Strings of characters

Discussion in 'C++' started by miznogud, Sep 1, 2010.

  1. miznogud

    miznogud New Member

    Joined:
    Sep 1, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    The insruction is create a program that asks for two input srings until the character 'x' is encountered. For each input string display as output its length, its reverse and the concatenation of reversed inputs (see output below).

    Sample output:

    Enter 1: Hellox
    enter 2: Goodbyex

    the inputs are: Hello and goodbye
    the lengths are: 5 and 7
    the reverse are: Olleh and eybdoog
    concatenation: Olleheybdoog

    do you like to repeat asking input?(y/n)y
     

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