C# Sharp Exercises: Reverse the words of three or more lengths in a string
Write a C# Sharp program that takes a string and reverses the words of three or more lengths in a string. Return the updated string. As input characters, only letters and spaces are permitted.
Sample Data:
("The quick brown fox jumps over the lazy dog") -> "ehT kciuq nworb xof spmuj revo eht yzal god"
("Reverse the words of three or more") -> "esreveR eht sdrow of eerht or erom"
("ABcDef") -> "feDcBA"
Sample Solution:
C# Sharp Code:
Sample Output:
Original strings: The quick brown fox jumps over the lazy dog Reverse the words of three or more lengths of the said string: ehT kciuq nworb xof spmuj revo eht yzal god
Flowchart :

C# Sharp Code Editor:
Improve this sample solution and post your code through Disqus
Previous: Find the longest common ending between two strings.
Next: Check if a string is an anagram of another given string.
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.