040_数组的遍历。

namespace _040_数组的遍历 {

    class Program {

        static void Main(string[] args)

        {

            int[] scores = {23, 2, 32, 3, 34, 35, 45, 43, 543};

            //scores.Length//得到数组的长度

            //for (int i = 0; i < scores.Length; i++)

            //{

            //    Console.WriteLine(scores[i]);

            //}

            //int i = 0;

            //while (i

你可能感兴趣的:(040_数组的遍历。)