2025-08-09 00:16:10 +09:00

13 lines
346 B
C

#include <stdio.h>
int main(){
int numbers[10] = {5, 29, -10, 55, 1, 9, 8, 15, 42, -7};
int min = numbers[0], max = numbers[0];
for(int i=0; i<10; i++){
if(numbers[i]<min) min = numbers[i];
if(numbers[i]>max) max = numbers[i];
}
printf("최소값 : %d\n최대값 : %d\n to. 리노",min, max);
return 0;
}