I\'m trying to find the minimum value of numbers in an array but it doesn\'t always work out properly. This is the code I wrote:
for (int i=0; i <
You are checking the first element in each iteration, you basically need to check minimum value
if (arr[j] < min) { min = arr[j]; }