using System; using System.Text; namespace cs_plusplus { class cs_plusplus { static void display(int[] arr, int len, string name) { Console.Write("{0}:", name); for(int i = 0; i < len; i++) Console.Write(" {0}", arr[i]); Console.Write("\n"); } static void Main(string[] args) { int[] a = new int[16] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16}; int[] b1 = new int[10]; int[] b2 = new int[10]; int[] b3 = new int[10]; int[] b4 = new int[10]; int[] b5 = new int[10]; int[] b6 = new int[10]; int[] b7 = new int[10]; int[] b8 = new int[10]; int c1 = 1; int c2 = 1; int c3 = 1; int c4 = 1; int c5 = 1; int c6 = 1; int c7 = 1; int c8 = 1; for (int i = 2; i < 5; i++, c3++, ++c7) { b1[c1] = a[c1++]; b2[c2++] = a[c2]; b3[c3] = a[c3]; b4[c4++] = a[c4++]; b5[c5] = a[++c5]; b6[++c6] = a[c6]; b7[c7] = a[c7]; b8[++c8] = a[++c8]; } display(b1, 10, "b1"); display(b2, 10, "b2"); display(b3, 10, "b3"); display(b4, 10, "b4"); display(b5, 10, "b5"); display(b6, 10, "b6"); display(b7, 10, "b7"); display(b8, 10, "b8"); } } }