#include <stdio.h>
int findMax(int numbers[], int size){ // λ°°μ΄μ μ΅λκ°μ λ°ννλ ν¨μ
int max = numbers[0]; // λ³μ maxμ numbers[0]κ° μ΄κΈ°ν
for(int i = 1; i < size; i++){
if(numbers[i] > max){
max = numbers[i];
}
}
return max; // μ΅λκ° max λ°ν
}
int main(){
int numbers[10] = {10, 52, 23, 74, 15, 67, 38, 29, 40, 51};
int max_value = findMax(numbers, 10); // μ΅λκ°μ μ°Ύλ ν¨μ νΈμΆ
printf("λ°°μ΄μ μ΅λκ°μ %d μ
λλ€!\n", max_value);
return 0;
}