public Elemento(int id, string nombre, int padre)
static void padres(Elemento[] obj,int num)
for (int j=0;j<=num;j++){
Console.WriteLine(obj[i].Nombre);
public static void Main(string[] args)
new Elemento(1,"Adam",0),
new Elemento(2,"Cain",1),
new Elemento(4,"Jonas",2),
new Elemento(5,"Seth",1),
new Elemento(6,"Abraham",3),
new Elemento(7,"Sacarias",4)};
Console.WriteLine("+"+elementos[0].Nombre);