using System.Collections.Generic;
public static void Main()
string[,] animals = new string[8,4]
{"yeman","dog", "12", "omnivore"},
{"wendy","cat", "3", "omnivore"},
{"gary","fish", "1", "omnivore"},
{"lappy","dog", "4", "omnivore"},
{"britney","snake", "2", "carnivore"},
{"fluff","dog", "4", "omnivore"},
{"boob","dog", "5", "omnivore"},
{"shirley","reptileman", "7", "omnivore"},
int x = Convert.ToInt32(animals[0,2]);
for(int i = 0; i <=7; i++)
tot += Convert.ToInt32(animals[i,2]);
Console.WriteLine("What is the name of the animal?");
string names = Console.ReadLine();
for(int i = 0; i <=8; i++)
if (animals[j,0] == names)
Console.WriteLine("Animal is for sale");
Console.WriteLine(string.Join(",", animals[j,0], animals[j,1], animals[j,2], animals[j,3]));
Console.WriteLine("average age " + tot);