for (int index = 0; index < 200; index++)
{
if(find_array[index] < minimums[0])
{
minimums[0] = find_array[index]; //Lowest number
cout <<"The index is " << index << endl; // trying to find an index
}
}
for (int index = 0; index < 200; index++)
{
if(find_array[index] < minimums[1] && find_array[index] > minimums[0])
{
minimums[1] = find_array[index]; //The NEXT Lowest number
cout <<"The index is " << index << endl; // trying to find an index
}
}
I am trying to find the index of the smallest number.... Everything is fine but I couldnt find the index of it?