private void IsiArray() { // Console.WriteLine("nilai jumlah baris: {0}", jmlBaris); //Console.WriteLine("nilai jumlah kolom: {0}", jmlKolom); //Console.WriteLine("buffer array : {0}",jmlBaris*jmlKolom); //for (int b = 0; b < jmlBaris; b++) //{ // for (int k = 0; k < jmlKolom; k++) //{ //diagonal kiri ke kanan ganjil // if (b == k) // Array2D[b, k] = (k*2+1).ToString(); //diagonal kanan ke kiri genap //else if (b + k == jmlBaris - 1) // Array2D[b, k] = (k * 2).ToString(); int[] fibo = FunctionBase.fibonacci(jmlKolom); for (int k = 0; k < jmlKolom; k++) { Array2D[0, k] = fibo[k].ToString(); } }