- 2

Write a C program to find the biggest and the smallest of n numbers.

26th Feb 2022, 8:20 AM
Amaresh Hansda
2 odpowiedzi
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; }
26th Feb 2022, 9:08 AM
Mustafa A
Mustafa A - avatar