I would like to know how I get the index of my current vector through c #, I already have a structure in code but there I get the value of that index and I do not want that, but I want to obtain its index to know if it is going to perform or not some action.
Here is my code
for (int x = 0; x < c;x++ )
{
vector[x]=c2;
if (vector[x]==0) {
}
else if (vector[x] !=0)
{
if (vector[x] > vector[x+1])
{
mayor3 = vector[x];
}
}
}