+ 1
Write code to reverses the string (take string from the user)
c++ language
2 odpowiedzi
+ 2
You could write a loop that puts every char in the string in an array.
then you reverse the array and after that you write a loop to make a string back again from the array. :)
+ 1
or you get the length of the string and then do a for loop and start with the last char and keep adding the chars to a new string