static void Main(string[] args)
object[] line ={12,15,22,33,66,44,78,545,74,11,88,88,44};
public void Method(object[] arrayInts, int numInRow)
int otherCells = arrayInts.Length % width;
int height = arrayInts.Length / width;
int cells = width * height + otherCells;
Console.WriteLine("width:" + width);
Console.WriteLine("height:" + height);
Console.WriteLine("otherArr:" + otherCells);
Console.WriteLine("Two-dimensional:" + cells + " elements " );
#region two-dimensional object
object[][] tableInts = new object[height][];
for (int i = 0; i < height; i++)
tableInts[i] = new object[height];
tableInts[0] = arrayInts[12];
Console.WriteLine(arrayInts[0]);