- Input the string from the user.
- Find the length of the string. The actual length of the string is one less than the number of characters in the string. …
- Repeat the below steps from i = 0 to the entire length of the string.
- rev[i] = str[j]
- Print the reversed string.
sandhyamini Answered question December 16, 2023
