I have an array of string which is
- string[] myarr = new[] { "a", "b", "c" };
Can you please help me how to get this result?
- a
- ab
- abc
I tried this one but I just don't know how to get the value from the array and add it on my list
- string[] myarray = new string[] { "a", "b", "c" };
- List resultarray = new List();
- int i, j;
- for (i = 0; i <= myarray.Length; i++)
- {
- for (j = i; j <= i; j++)
- {
- }
- }

Rajanikant HawaldarRank #110 · 20.2K reputationPosted Dec 2, 2020, 4:43 AM EST
Tamil RkRank #4,239 · 356 reputationPosted Dec 7, 2020, 9:01 PM EST
Ben ThompsonRank #8,839 · 215 reputationPosted Dec 2, 2020, 4:48 AM EST
Mageshwaran RRank #411 · 6.1K reputationPosted Dec 6, 2020, 5:09 AM EST