- 2
Write a C program to find the biggest and the smallest of n numbers.
2 Respuestas
0
int min = INT_MAX;
int max = INT_MIN;
for(int idx = 0; idx < sizeof(num_list); idx++) {
int num = num_list[idx];
min = min > num ? num : min;
max = max < num ? num : max;
}