Ask Question
27 July, 15:27

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.

+2
Answers (1)
  1. 27 July, 16:12
    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 you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers