so here is the code. I need to find the last value put into the array to do some calculations. If anyone has any ideas to use an arraylist and .Add that would be great. Thanks!

public static void GetCalc(int n1, int n2) { int i, n = 1, m = n2; int[,] numArray = new int[15, 2]; for (i = 0; n <= n1; i++) { if (n1 > 0) { n = n * 2; m = m * 2; } if (n <= n1) { numArray[i, 0] = n; numArray[i, 1] = m; Console.WriteLine(numArray[i, 0]); //Console.WriteLine(numArray[i, 0] + " " + numArray[i, 1]); } else if (n1 <= 1) { numArray[i, 0] = n1; numArray[i, 1] = n2; //Console.WriteLine("Case" + (x + 1) + " : " + n1 + " x " + n2 + " = " + (n1 * n2)); } } }