Program to find reverse of a stringExplanationIn this program, we need to find the reverse of the string. This can be done by iterating the string backward and storing each character from the original string into a new string. Algorithm
SolutionPythonOutput: Original string: Dream big Reverse of given string: gib maerD COutput: Original string: Dream big Reverse of given string: gib maerD JAVAOutput: Original string: Dream big Reverse of given string: gib maerD C#Output: Original string: Dream big Reverse of given string: gib maerD PHPOutput: Original string: Dream big Reverse of given string: gib maerD
Next Topic#
|