Answers for "iterate through 2d array c#"

C#
3

loop through multidimensional array c#

for (int x = 0; x < YourArray.GetLength(0); x++)
{
    for (int y = 0; y < YourArray.GetLength(1); y++)
    {
        Console.WriteLine(YourArray[x, y]);
    }
}
Posted by: Guest on February-10-2021

C# Answers by Framework

Browse Popular Code Answers by Language