Friday, April 29, 2016

Array of String

using System;

namespace Array_1
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] names = new string[5];
            names[0] = "Dara";
            names[1] = "Kunthear";
            names[2] = "Sambo";
            names[3] = "Veasna";
            names[4] = "Bopha";

            for (int a = 0; a < names.Length; a++)
            Console.WriteLine(names[a]);
            Console.ReadLine();

        }
    }
}


Output



No comments:

Post a Comment