示例#1
0
 private void isiArray()
 {
     int[] fibo = FunctionBase.nomor09(JmlBaris / 2);
     for (int b = 0; b < JmlBaris; b++)
     {
         for (int k = 0; k < JmlKolom; k++)
         {
             //atas
             if (b <= k && b + k <= JmlBaris - 1 && b % 2 == 0)
             {
                 //GARIS BAWAH
                 Array2D[b, k] = fibo[b / 2].ToString();
                 //GARIS BAWAH - MIRROR
                 Array2D[JmlBaris - 1 - b, k] = fibo[b / 2].ToString();
             }
             else if (b >= k && b + k <= JmlBaris - 1 && k % 2 == 0)
             {
                 //GARIS BAWAH
                 Array2D[b, k] = fibo[k / 2].ToString();
                 //GARIS BAWAH - MIRROR
                 Array2D[b, JmlKolom - 1 - k] = fibo[k / 2].ToString();
             }
         }
     }
 }