hi there people
i got a prob with my code
in my problem i got a matrix and i need to find the even number or numbers on that matrix (12x30) (by the way is the even minimun or minimums), so here is my function "tempeven" part., the actual issue is that is printing the 3 minimun even numbers, and sometimes is not printing anything.
void Tempeven(int X[][col])
{
int cont=0;
cout<<"the temperaturas even min: "<<endl;
int min=X[0][0];
for (int i=0;i<row;i++)
{
for (int j=0;j<col;j++)
{
if (X[i][j]%2 == 0 && X[i][j]<min)
min=X[i][j];
cout<<endl<<min;
}
}
}