public static void Main()
int []cells = {0, 1, 0, 1,
private const int INACTIVE=0;
private const int ACTIVE=1;
static int[] cellCompete(int[] cells, int days)
for (int i = 0; i < n; i++)
temp[n - 1] = 0 ^ cells[n-2];
for (int i = 1; i <= n - 2; i++)
temp[i] = cells[i - 1] ^ cells[i + 1];
for (int i = 0; i < n; i++)
int active = 0, inactive = 0;
for (int i = 0; i < n; i++)
Console.Write("Active Cells = " + active + ", " +
"Inactive Cells = " + inactive);