How to convert int array to string in C#

1 Answer

0 votes
using System;
 
class Program
{
    static void Main() {
        int[] iarray = { 6, 9, 0, 2, 7 };
        
        string s = string.Join("", iarray);

        Console.Write(s);
    }
}
 
 
 
 
/*
run:
 
69027
 
*/

 



answered Oct 24, 2020 by avibootz

Related questions

1 answer 115 views
1 answer 178 views
1 answer 184 views
2 answers 180 views
1 answer 255 views
1 answer 116 views
116 views asked Jan 23, 2024 by avibootz
1 answer 118 views
...