For instance, if the string entered was INTERLEAVED, then the first string would be ITREVD and the second one would be NELAE. Do I need to put the user entered string into a character array and assign the values from there?
For instance, if the string entered was INTERLEAVED , then the first string would
Share
index % 2 == 0if you’re at an even letter and== 1if you’re at an odd. (Modulo is the remainder operator.)
PS: You should really try to write something before posting a question on SO.