Answers for "loop through an multidimensional 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

Code answers related to "loop through an multidimensional array c#"

C# Answers by Framework

Browse Popular Code Answers by Language