using System;
public class Program
{
public static int PosX;
public static int PosY;
public static void Main()
int[, ] carpark = new int[, ]{{1, 0, 0, 0, 2}, {0, 0, 0, 0, 0}};
for (int x = 0; x < carpark.GetLength(0); x++)
for (int y = 0; y < carpark.GetLength(1); y++)
if (carpark[x, y] == 2)
//set starting point
PosX = x;
PosY = y;
}
//Code here