int[,] arr = {{1,2,3},{4,5,6},{7,8,9} }; int count = 0; foreach (int i in arr) { Console.Write(i); count++; if (count%3==0) { Console.Write('\n'); } }