Question: Given the strings s 1 and s 2 that are of the same length, create a new string consisting of the first character of s
Given the strings and that are of the same length, create a new string consisting of the first character of s followed by the first character of followed by the second character of followed by the second character of and so on in other words the new string should consist of alternating characters of and For example, if contained "hello" and contained "world", then the new string should contain "hweolrllod". Assign the new string to the variable
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
