I want to combine 2 consecutive elements of the even str array to create another string array with output as shown in example
For example if we have 6 elements in an array like
- string[] str = new string[] {"a", "b", "c", "d", "e", "1"}
it will combine in another string array strCombined to show output of {"ab", "cd", "e1"}
Please advise on how this can be done?

Shivangi RajdeRank #609 · 3.9K reputationPosted Jun 30, 2020, 10:50 PM EDT
Shivangi RajdeRank #609 · 3.9K reputationPosted Jun 30, 2020, 4:08 AM EDT
Code snippet in JavaScript
Code snippet in c#
Jignesh KumarRank #91 · 22.9K reputationPosted Jul 1, 2020, 1:52 AM EDT
Ram PrasadRank #4,848 · 322 reputationPosted Jun 30, 2020, 8:27 PM EDT
Laxmidhar SahooRank #383 · 6.6K reputationPosted Jun 30, 2020, 10:53 PM EDT