AdBrite

Your Ad Here
Showing posts with label array loop. Show all posts
Showing posts with label array loop. Show all posts

Monday, December 6, 2010

Loop through the content of an array

            //create the array
            int[] ml = new int[7]; //{ 5, 3, 7, 9, 2, 6, 8, };
           
            //loop through the content of the ml array
            string x = "";

            for (int i = 0; i < ml.Length; i++)
            {
                x += Convert.ToInt32(ml[i]) + " ";
            }

            MessageBox.Show(x);

BidVertiser

pocket cents

PocketCents Local Online Advertising