Concat all the numeric array into a string

Madhu.b.rokkam
Posted by Madhu.b.rokkam under C# category on | Points: 40 | Views : 2495
 int[] integers = { 0, 1, 2, 3, 4, 5 };
Console.WriteLine(String.Concat(integers));


result
012345

int[] integers = { 0, 10, 23, 35, 40, 5 };
Console.WriteLine(String.Concat(integers));


result
0102335405

Comments or Responses

Login to post response