how can you reverse a string
Answers
Answered by
1
Answer:
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. Let actual length be j.
Repeat the below steps from i = 0 to the entire length of the string.
rev[i] = str[j]
Print the reversed string.
Pls mark me as BRAINLIST
Similar questions