You are using the foreach function wrong.
In foreach loop you are iterate the items value of the collection each iteration,
so the item variable in your case is the value of the cell in that iteration and not his index (like in regular for loop).
It will look like this:
foreach (int item in numere)
{
Console.WriteLine(item);
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…