Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 519 Bytes

README.md

File metadata and controls

14 lines (11 loc) · 519 Bytes

Some Simple Methods for String Reversal:

Rev( string str )

Uses a for loop to add the last character of the string to a new a string and outputs the result

RecursiveRev( string str )

Uses recursion to call the same method with the first character removed and adds it to the end of the call

ReverseSentence( string str )

Reverses the entire string and then reverses the individuals words to output the sentence with the words in reverse order