Ask Question
10 September, 15:50

Given the strings s1 and s2, not necessarily of the same length, create a new string consisting of alternating characters of s1 and s2 (that is, the first character of s1 followed by the first character of s2, followed by the second character of s1, followed by the second character of s2, and so on. Once the end of either string is reached, no additional characters are added. For example, if s1 contained "abc" and s2 contained "uvwxyz", then the new string should contain "aubvcw". Assign the new string to the variable s3.

+3
Answers (1)
  1. 10 September, 16:16
    0
    THE ANSA IZ A
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Given the strings s1 and s2, not necessarily of the same length, create a new string consisting of alternating characters of s1 and s2 ...” in 📗 Engineering if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers