home *** CD-ROM | disk | FTP | other *** search
- using System;
-
- class MyArray
- {
- public static void Main()
- {
- int[] nArray = new int[] {10, 20, 30, 40, 50, 60, 70, 80, 90, 100};
-
- Console.WriteLine("nArray has {0} elements:", nArray.Length);
-
- for(int cnt=0; cnt<nArray.Length; cnt++)
- Console.WriteLine("The value of element {0} is {1}", cnt, nArray[cnt]);
- }
- }
-