Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

print an array in c#

using System;

namespace print_string_array
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] arr = new string[] { "one", "two", "three", "four" };
            Console.WriteLine(String.Join("
", arr));
        }
    }
}
Source by www.delftstack.com #
 
PREVIOUS NEXT
Tagged: #print #array
ADD COMMENT
Topic
Name
1+2 =