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

Strings of characters

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

  1. miznogud

    miznogud New Member

    Sep 1, 2010
    Likes Received:
    Trophy Points:
    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