Hello, my question is how to find the minimum value of a set of numbers in a loop. I used a for loop, and the maximum value is always right but the minimum is always 0. I think it's because the minValue is set to 0 to begin with so it thinks it's an input and not just the starter value. This is my code

Code:
#include <stdio.h>
#include <stdlib.h>
#define pause system("pause")
#define LOOPMAX
...