Web Analytics

[c++] Write a recursive function takes a word string as input argument and reverse the word. Print out the results of recursive calls. Also write a main program accepts input from the user and then call the recursive function.


Example:

Enter a word: hello

h

eh

leh

lleh

olleh ...?